home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / datalist / datalist.exe / %MAINDIR% / SAMPLES / Sample9 / GTLIST32.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-09  |  78.8 KB  |  4,045 lines

  1. // Machine generated IDispatch wrapper class(es) created with ClassWizard
  2.  
  3. #include "stdafx.h"
  4. #include "gtlist32.h"
  5.  
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11.  
  12.  
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // _DGTListEvents properties
  16.  
  17. /////////////////////////////////////////////////////////////////////////////
  18. // _DGTListEvents operations
  19.  
  20. void _DGTListEvents::Click()
  21. {
  22.     InvokeHelper(DISPID_CLICK, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  23. }
  24.  
  25. void _DGTListEvents::DblClick()
  26. {
  27.     InvokeHelper(DISPID_DBLCLICK, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  28. }
  29.  
  30. void _DGTListEvents::KeyDown(short* KeyCode, short Shift)
  31. {
  32.     static BYTE parms[] =
  33.         VTS_PI2 VTS_I2;
  34.     InvokeHelper(DISPID_KEYDOWN, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  35.          KeyCode, Shift);
  36. }
  37.  
  38. void _DGTListEvents::KeyPress(short* KeyAscii)
  39. {
  40.     static BYTE parms[] =
  41.         VTS_PI2;
  42.     InvokeHelper(DISPID_KEYPRESS, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  43.          KeyAscii);
  44. }
  45.  
  46. void _DGTListEvents::KeyUp(short* KeyCode, short Shift)
  47. {
  48.     static BYTE parms[] =
  49.         VTS_PI2 VTS_I2;
  50.     InvokeHelper(DISPID_KEYUP, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  51.          KeyCode, Shift);
  52. }
  53.  
  54. void _DGTListEvents::MouseDown(short Button, short Shift, long x, long y)
  55. {
  56.     static BYTE parms[] =
  57.         VTS_I2 VTS_I2 VTS_I4 VTS_I4;
  58.     InvokeHelper(DISPID_MOUSEDOWN, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  59.          Button, Shift, x, y);
  60. }
  61.  
  62. void _DGTListEvents::MouseMove(short Button, short Shift, long x, long y)
  63. {
  64.     static BYTE parms[] =
  65.         VTS_I2 VTS_I2 VTS_I4 VTS_I4;
  66.     InvokeHelper(DISPID_MOUSEMOVE, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  67.          Button, Shift, x, y);
  68. }
  69.  
  70. void _DGTListEvents::MouseUp(short Button, short Shift, long x, long y)
  71. {
  72.     static BYTE parms[] =
  73.         VTS_I2 VTS_I2 VTS_I4 VTS_I4;
  74.     InvokeHelper(DISPID_MOUSEUP, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  75.          Button, Shift, x, y);
  76. }
  77.  
  78. void _DGTListEvents::ListItemDataRequest(LPDISPATCH* ListItem, long Index)
  79. {
  80.     static BYTE parms[] =
  81.         VTS_PDISPATCH VTS_I4;
  82.     InvokeHelper(0x1, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  83.          ListItem, Index);
  84. }
  85.  
  86. void _DGTListEvents::ExtendTipBegin(BOOL* Cancel)
  87. {
  88.     static BYTE parms[] =
  89.         VTS_PBOOL;
  90.     InvokeHelper(0x2, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  91.          Cancel);
  92. }
  93.  
  94. void _DGTListEvents::ExtendTipEnd()
  95. {
  96.     InvokeHelper(0x3, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  97. }
  98.  
  99. void _DGTListEvents::ScrollTipBegin(BOOL* Cancel)
  100. {
  101.     static BYTE parms[] =
  102.         VTS_PBOOL;
  103.     InvokeHelper(0x4, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  104.          Cancel);
  105. }
  106.  
  107. void _DGTListEvents::ScrollTipEnd()
  108. {
  109.     InvokeHelper(0x5, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  110. }
  111.  
  112. void _DGTListEvents::ClickColumn(LPDISPATCH* ColumnDef)
  113. {
  114.     static BYTE parms[] =
  115.         VTS_PDISPATCH;
  116.     InvokeHelper(0x6, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  117.          ColumnDef);
  118. }
  119.  
  120. void _DGTListEvents::ClickItem(LPDISPATCH* ListItem, LPDISPATCH* SubItem)
  121. {
  122.     static BYTE parms[] =
  123.         VTS_PDISPATCH VTS_PDISPATCH;
  124.     InvokeHelper(0x7, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  125.          ListItem, SubItem);
  126. }
  127.  
  128. void _DGTListEvents::ColumnAfterMove(LPDISPATCH ColumnDef)
  129. {
  130.     static BYTE parms[] =
  131.         VTS_DISPATCH;
  132.     InvokeHelper(0x8, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  133.          ColumnDef);
  134. }
  135.  
  136. void _DGTListEvents::ColumnBeforeMove(LPDISPATCH ColumnDef, BOOL* Cancel)
  137. {
  138.     static BYTE parms[] =
  139.         VTS_DISPATCH VTS_PBOOL;
  140.     InvokeHelper(0x9, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  141.          ColumnDef, Cancel);
  142. }
  143.  
  144. void _DGTListEvents::ColumnResize(LPDISPATCH* ColumnDef, BOOL* Cancel)
  145. {
  146.     static BYTE parms[] =
  147.         VTS_PDISPATCH VTS_PBOOL;
  148.     InvokeHelper(0xa, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  149.          ColumnDef, Cancel);
  150. }
  151.  
  152. void _DGTListEvents::HorzScroll()
  153. {
  154.     InvokeHelper(0xb, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  155. }
  156.  
  157. void _DGTListEvents::VertScroll()
  158. {
  159.     InvokeHelper(0xc, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  160. }
  161.  
  162.  
  163. /////////////////////////////////////////////////////////////////////////////
  164. // _DGTList properties
  165.  
  166. OLE_COLOR _DGTList::GetBackColor()
  167. {
  168.     OLE_COLOR result;
  169.     GetProperty(DISPID_BACKCOLOR, VT_I4, (void*)&result);
  170.     return result;
  171. }
  172.  
  173. void _DGTList::SetBackColor(OLE_COLOR propVal)
  174. {
  175.     SetProperty(DISPID_BACKCOLOR, VT_I4, propVal);
  176. }
  177.  
  178. BOOL _DGTList::GetEnabled()
  179. {
  180.     BOOL result;
  181.     GetProperty(DISPID_ENABLED, VT_BOOL, (void*)&result);
  182.     return result;
  183. }
  184.  
  185. void _DGTList::SetEnabled(BOOL propVal)
  186. {
  187.     SetProperty(DISPID_ENABLED, VT_BOOL, propVal);
  188. }
  189.  
  190. OLE_HANDLE _DGTList::GetHWnd()
  191. {
  192.     OLE_HANDLE result;
  193.     GetProperty(DISPID_HWND, VT_I4, (void*)&result);
  194.     return result;
  195. }
  196.  
  197. void _DGTList::SetHWnd(OLE_HANDLE propVal)
  198. {
  199.     SetProperty(DISPID_HWND, VT_I4, propVal);
  200. }
  201.  
  202. long _DGTList::GetMultiSelect()
  203. {
  204.     long result;
  205.     GetProperty(0x2, VT_I4, (void*)&result);
  206.     return result;
  207. }
  208.  
  209. void _DGTList::SetMultiSelect(long propVal)
  210. {
  211.     SetProperty(0x2, VT_I4, propVal);
  212. }
  213.  
  214. LPDISPATCH _DGTList::GetPicture()
  215. {
  216.     LPDISPATCH result;
  217.     GetProperty(0x3, VT_DISPATCH, (void*)&result);
  218.     return result;
  219. }
  220.  
  221. void _DGTList::SetPicture(LPDISPATCH propVal)
  222. {
  223.     SetProperty(0x3, VT_DISPATCH, propVal);
  224. }
  225.  
  226. long _DGTList::GetPictureAlignment()
  227. {
  228.     long result;
  229.     GetProperty(0x4, VT_I4, (void*)&result);
  230.     return result;
  231. }
  232.  
  233. void _DGTList::SetPictureAlignment(long propVal)
  234. {
  235.     SetProperty(0x4, VT_I4, propVal);
  236. }
  237.  
  238. LPDISPATCH _DGTList::GetSelectedItem()
  239. {
  240.     LPDISPATCH result;
  241.     GetProperty(0x5, VT_DISPATCH, (void*)&result);
  242.     return result;
  243. }
  244.  
  245. void _DGTList::SetSelectedItem(LPDISPATCH propVal)
  246. {
  247.     SetProperty(0x5, VT_DISPATCH, propVal);
  248. }
  249.  
  250. BOOL _DGTList::GetSorted()
  251. {
  252.     BOOL result;
  253.     GetProperty(0x6, VT_BOOL, (void*)&result);
  254.     return result;
  255. }
  256.  
  257. void _DGTList::SetSorted(BOOL propVal)
  258. {
  259.     SetProperty(0x6, VT_BOOL, propVal);
  260. }
  261.  
  262. short _DGTList::GetSortKey()
  263. {
  264.     short result;
  265.     GetProperty(0x7, VT_I2, (void*)&result);
  266.     return result;
  267. }
  268.  
  269. void _DGTList::SetSortKey(short propVal)
  270. {
  271.     SetProperty(0x7, VT_I2, propVal);
  272. }
  273.  
  274. long _DGTList::GetSortOrder()
  275. {
  276.     long result;
  277.     GetProperty(0x8, VT_I4, (void*)&result);
  278.     return result;
  279. }
  280.  
  281. void _DGTList::SetSortOrder(long propVal)
  282. {
  283.     SetProperty(0x8, VT_I4, propVal);
  284. }
  285.  
  286. VARIANT _DGTList::GetTagVariant()
  287. {
  288.     VARIANT result;
  289.     GetProperty(0x9, VT_VARIANT, (void*)&result);
  290.     return result;
  291. }
  292.  
  293. void _DGTList::SetTagVariant(const VARIANT& propVal)
  294. {
  295.     SetProperty(0x9, VT_VARIANT, &propVal);
  296. }
  297.  
  298. BOOL _DGTList::GetAllowColumnDragDrop()
  299. {
  300.     BOOL result;
  301.     GetProperty(0xa, VT_BOOL, (void*)&result);
  302.     return result;
  303. }
  304.  
  305. void _DGTList::SetAllowColumnDragDrop(BOOL propVal)
  306. {
  307.     SetProperty(0xa, VT_BOOL, propVal);
  308. }
  309.  
  310. BOOL _DGTList::GetAllowColumnResize()
  311. {
  312.     BOOL result;
  313.     GetProperty(0xb, VT_BOOL, (void*)&result);
  314.     return result;
  315. }
  316.  
  317. void _DGTList::SetAllowColumnResize(BOOL propVal)
  318. {
  319.     SetProperty(0xb, VT_BOOL, propVal);
  320. }
  321.  
  322. CString _DGTList::GetImageList()
  323. {
  324.     CString result;
  325.     GetProperty(0xc, VT_BSTR, (void*)&result);
  326.     return result;
  327. }
  328.  
  329. void _DGTList::SetImageList(LPCTSTR propVal)
  330. {
  331.     SetProperty(0xc, VT_BSTR, propVal);
  332. }
  333.  
  334. long _DGTList::GetListCount()
  335. {
  336.     long result;
  337.     GetProperty(0xd, VT_I4, (void*)&result);
  338.     return result;
  339. }
  340.  
  341. void _DGTList::SetListCount(long propVal)
  342. {
  343.     SetProperty(0xd, VT_I4, propVal);
  344. }
  345.  
  346. long _DGTList::GetNewIndex()
  347. {
  348.     long result;
  349.     GetProperty(0xe, VT_I4, (void*)&result);
  350.     return result;
  351. }
  352.  
  353. void _DGTList::SetNewIndex(long propVal)
  354. {
  355.     SetProperty(0xe, VT_I4, propVal);
  356. }
  357.  
  358. unsigned long _DGTList::GetScrollTipBackColor()
  359. {
  360.     unsigned long result;
  361.     GetProperty(0xf, VT_I4, (void*)&result);
  362.     return result;
  363. }
  364.  
  365. void _DGTList::SetScrollTipBackColor(unsigned long propVal)
  366. {
  367.     SetProperty(0xf, VT_I4, propVal);
  368. }
  369.  
  370. CString _DGTList::GetScrollTipDataField()
  371. {
  372.     CString result;
  373.     GetProperty(0x10, VT_BSTR, (void*)&result);
  374.     return result;
  375. }
  376.  
  377. void _DGTList::SetScrollTipDataField(LPCTSTR propVal)
  378. {
  379.     SetProperty(0x10, VT_BSTR, propVal);
  380. }
  381.  
  382. LPDISPATCH _DGTList::GetScrollTipFont()
  383. {
  384.     LPDISPATCH result;
  385.     GetProperty(0x11, VT_DISPATCH, (void*)&result);
  386.     return result;
  387. }
  388.  
  389. void _DGTList::SetScrollTipFont(LPDISPATCH propVal)
  390. {
  391.     SetProperty(0x11, VT_DISPATCH, propVal);
  392. }
  393.  
  394. unsigned long _DGTList::GetScrollTipForeColor()
  395. {
  396.     unsigned long result;
  397.     GetProperty(0x12, VT_I4, (void*)&result);
  398.     return result;
  399. }
  400.  
  401. void _DGTList::SetScrollTipForeColor(unsigned long propVal)
  402. {
  403.     SetProperty(0x12, VT_I4, propVal);
  404. }
  405.  
  406. long _DGTList::GetSelCount()
  407. {
  408.     long result;
  409.     GetProperty(0x13, VT_I4, (void*)&result);
  410.     return result;
  411. }
  412.  
  413. void _DGTList::SetSelCount(long propVal)
  414. {
  415.     SetProperty(0x13, VT_I4, propVal);
  416. }
  417.  
  418. CString _DGTList::GetText()
  419. {
  420.     CString result;
  421.     GetProperty(DISPID_TEXT, VT_BSTR, (void*)&result);
  422.     return result;
  423. }
  424.  
  425. void _DGTList::SetText(LPCTSTR propVal)
  426. {
  427.     SetProperty(DISPID_TEXT, VT_BSTR, propVal);
  428. }
  429.  
  430. unsigned long _DGTList::GetExtendTipBackColor()
  431. {
  432.     unsigned long result;
  433.     GetProperty(0x14, VT_I4, (void*)&result);
  434.     return result;
  435. }
  436.  
  437. void _DGTList::SetExtendTipBackColor(unsigned long propVal)
  438. {
  439.     SetProperty(0x14, VT_I4, propVal);
  440. }
  441.  
  442. CString _DGTList::GetExtendTipDataField()
  443. {
  444.     CString result;
  445.     GetProperty(0x15, VT_BSTR, (void*)&result);
  446.     return result;
  447. }
  448.  
  449. void _DGTList::SetExtendTipDataField(LPCTSTR propVal)
  450. {
  451.     SetProperty(0x15, VT_BSTR, propVal);
  452. }
  453.  
  454. long _DGTList::GetExtendTipDelay()
  455. {
  456.     long result;
  457.     GetProperty(0x16, VT_I4, (void*)&result);
  458.     return result;
  459. }
  460.  
  461. void _DGTList::SetExtendTipDelay(long propVal)
  462. {
  463.     SetProperty(0x16, VT_I4, propVal);
  464. }
  465.  
  466. LPDISPATCH _DGTList::GetExtendTipFont()
  467. {
  468.     LPDISPATCH result;
  469.     GetProperty(0x17, VT_DISPATCH, (void*)&result);
  470.     return result;
  471. }
  472.  
  473. void _DGTList::SetExtendTipFont(LPDISPATCH propVal)
  474. {
  475.     SetProperty(0x17, VT_DISPATCH, propVal);
  476. }
  477.  
  478. unsigned long _DGTList::GetExtendTipForeColor()
  479. {
  480.     unsigned long result;
  481.     GetProperty(0x18, VT_I4, (void*)&result);
  482.     return result;
  483. }
  484.  
  485. void _DGTList::SetExtendTipForeColor(unsigned long propVal)
  486. {
  487.     SetProperty(0x18, VT_I4, propVal);
  488. }
  489.  
  490. long _DGTList::GetExtendTipTimeout()
  491. {
  492.     long result;
  493.     GetProperty(0x19, VT_I4, (void*)&result);
  494.     return result;
  495. }
  496.  
  497. void _DGTList::SetExtendTipTimeout(long propVal)
  498. {
  499.     SetProperty(0x19, VT_I4, propVal);
  500. }
  501.  
  502. long _DGTList::GetTopIndex()
  503. {
  504.     long result;
  505.     GetProperty(0x1a, VT_I4, (void*)&result);
  506.     return result;
  507. }
  508.  
  509. void _DGTList::SetTopIndex(long propVal)
  510. {
  511.     SetProperty(0x1a, VT_I4, propVal);
  512. }
  513.  
  514. long _DGTList::GetVertScrollBar()
  515. {
  516.     long result;
  517.     GetProperty(0x1b, VT_I4, (void*)&result);
  518.     return result;
  519. }
  520.  
  521. void _DGTList::SetVertScrollBar(long propVal)
  522. {
  523.     SetProperty(0x1b, VT_I4, propVal);
  524. }
  525.  
  526. unsigned long _DGTList::GetDefColCaptionBackColor()
  527. {
  528.     unsigned long result;
  529.     GetProperty(0x1c, VT_I4, (void*)&result);
  530.     return result;
  531. }
  532.  
  533. void _DGTList::SetDefColCaptionBackColor(unsigned long propVal)
  534. {
  535.     SetProperty(0x1c, VT_I4, propVal);
  536. }
  537.  
  538. long _DGTList::GetDefColCaptionFont3D()
  539. {
  540.     long result;
  541.     GetProperty(0x1d, VT_I4, (void*)&result);
  542.     return result;
  543. }
  544.  
  545. void _DGTList::SetDefColCaptionFont3D(long propVal)
  546. {
  547.     SetProperty(0x1d, VT_I4, propVal);
  548. }
  549.  
  550. LPDISPATCH _DGTList::GetDefColCaptionFont()
  551. {
  552.     LPDISPATCH result;
  553.     GetProperty(0x1e, VT_DISPATCH, (void*)&result);
  554.     return result;
  555. }
  556.  
  557. void _DGTList::SetDefColCaptionFont(LPDISPATCH propVal)
  558. {
  559.     SetProperty(0x1e, VT_DISPATCH, propVal);
  560. }
  561.  
  562. long _DGTList::GetDefColCaptionPictureAlignment()
  563. {
  564.     long result;
  565.     GetProperty(0x1f, VT_I4, (void*)&result);
  566.     return result;
  567. }
  568.  
  569. void _DGTList::SetDefColCaptionPictureAlignment(long propVal)
  570. {
  571.     SetProperty(0x1f, VT_I4, propVal);
  572. }
  573.  
  574. unsigned long _DGTList::GetDefColCaptionForeColor()
  575. {
  576.     unsigned long result;
  577.     GetProperty(0x20, VT_I4, (void*)&result);
  578.     return result;
  579. }
  580.  
  581. void _DGTList::SetDefColCaptionForeColor(unsigned long propVal)
  582. {
  583.     SetProperty(0x20, VT_I4, propVal);
  584. }
  585.  
  586. float _DGTList::GetDefColumnWidth()
  587. {
  588.     float result;
  589.     GetProperty(0x21, VT_R4, (void*)&result);
  590.     return result;
  591. }
  592.  
  593. void _DGTList::SetDefColumnWidth(float propVal)
  594. {
  595.     SetProperty(0x21, VT_R4, propVal);
  596. }
  597.  
  598. long _DGTList::GetDefColCaptionBorderStyle()
  599. {
  600.     long result;
  601.     GetProperty(0x22, VT_I4, (void*)&result);
  602.     return result;
  603. }
  604.  
  605. void _DGTList::SetDefColCaptionBorderStyle(long propVal)
  606. {
  607.     SetProperty(0x22, VT_I4, propVal);
  608. }
  609.  
  610. float _DGTList::GetDefRowHeight()
  611. {
  612.     float result;
  613.     GetProperty(0x23, VT_R4, (void*)&result);
  614.     return result;
  615. }
  616.  
  617. void _DGTList::SetDefRowHeight(float propVal)
  618. {
  619.     SetProperty(0x23, VT_R4, propVal);
  620. }
  621.  
  622. float _DGTList::GetColumnHeaderHeight()
  623. {
  624.     float result;
  625.     GetProperty(0x24, VT_R4, (void*)&result);
  626.     return result;
  627. }
  628.  
  629. void _DGTList::SetColumnHeaderHeight(float propVal)
  630. {
  631.     SetProperty(0x24, VT_R4, propVal);
  632. }
  633.  
  634. unsigned long _DGTList::GetDefBackColor()
  635. {
  636.     unsigned long result;
  637.     GetProperty(0x25, VT_I4, (void*)&result);
  638.     return result;
  639. }
  640.  
  641. void _DGTList::SetDefBackColor(unsigned long propVal)
  642. {
  643.     SetProperty(0x25, VT_I4, propVal);
  644. }
  645.  
  646. LPDISPATCH _DGTList::GetDefFont()
  647. {
  648.     LPDISPATCH result;
  649.     GetProperty(0x26, VT_DISPATCH, (void*)&result);
  650.     return result;
  651. }
  652.  
  653. void _DGTList::SetDefFont(LPDISPATCH propVal)
  654. {
  655.     SetProperty(0x26, VT_DISPATCH, propVal);
  656. }
  657.  
  658. long _DGTList::GetDefFont3D()
  659. {
  660.     long result;
  661.     GetProperty(0x27, VT_I4, (void*)&result);
  662.     return result;
  663. }
  664.  
  665. void _DGTList::SetDefFont3D(long propVal)
  666. {
  667.     SetProperty(0x27, VT_I4, propVal);
  668. }
  669.  
  670. unsigned long _DGTList::GetDefForeColor()
  671. {
  672.     unsigned long result;
  673.     GetProperty(0x28, VT_I4, (void*)&result);
  674.     return result;
  675. }
  676.  
  677. void _DGTList::SetDefForeColor(unsigned long propVal)
  678. {
  679.     SetProperty(0x28, VT_I4, propVal);
  680. }
  681.  
  682. long _DGTList::GetDefPictureAlignment()
  683. {
  684.     long result;
  685.     GetProperty(0x29, VT_I4, (void*)&result);
  686.     return result;
  687. }
  688.  
  689. void _DGTList::SetDefPictureAlignment(long propVal)
  690. {
  691.     SetProperty(0x29, VT_I4, propVal);
  692. }
  693.  
  694. long _DGTList::GetDefTextAlignment()
  695. {
  696.     long result;
  697.     GetProperty(0x2a, VT_I4, (void*)&result);
  698.     return result;
  699. }
  700.  
  701. void _DGTList::SetDefTextAlignment(long propVal)
  702. {
  703.     SetProperty(0x2a, VT_I4, propVal);
  704. }
  705.  
  706. LPUNKNOWN _DGTList::GetDataSource()
  707. {
  708.     LPUNKNOWN result;
  709.     GetProperty(0x1, VT_UNKNOWN, (void*)&result);
  710.     return result;
  711. }
  712.  
  713. void _DGTList::SetDataSource(LPUNKNOWN propVal)
  714. {
  715.     SetProperty(0x1, VT_UNKNOWN, propVal);
  716. }
  717.  
  718. long _DGTList::GetAppearance()
  719. {
  720.     long result;
  721.     GetProperty(0x2b, VT_I4, (void*)&result);
  722.     return result;
  723. }
  724.  
  725. void _DGTList::SetAppearance(long propVal)
  726. {
  727.     SetProperty(0x2b, VT_I4, propVal);
  728. }
  729.  
  730. BOOL _DGTList::GetCalcRowCountOnLoad()
  731. {
  732.     BOOL result;
  733.     GetProperty(0x2c, VT_BOOL, (void*)&result);
  734.     return result;
  735. }
  736.  
  737. void _DGTList::SetCalcRowCountOnLoad(BOOL propVal)
  738. {
  739.     SetProperty(0x2c, VT_BOOL, propVal);
  740. }
  741.  
  742. unsigned long _DGTList::GetGridLineColor()
  743. {
  744.     unsigned long result;
  745.     GetProperty(0x2d, VT_I4, (void*)&result);
  746.     return result;
  747. }
  748.  
  749. void _DGTList::SetGridLineColor(unsigned long propVal)
  750. {
  751.     SetProperty(0x2d, VT_I4, propVal);
  752. }
  753.  
  754. long _DGTList::GetGridLineType()
  755. {
  756.     long result;
  757.     GetProperty(0x2e, VT_I4, (void*)&result);
  758.     return result;
  759. }
  760.  
  761. void _DGTList::SetGridLineType(long propVal)
  762. {
  763.     SetProperty(0x2e, VT_I4, propVal);
  764. }
  765.  
  766. long _DGTList::GetGridLineStyle()
  767. {
  768.     long result;
  769.     GetProperty(0x2f, VT_I4, (void*)&result);
  770.     return result;
  771. }
  772.  
  773. void _DGTList::SetGridLineStyle(long propVal)
  774. {
  775.     SetProperty(0x2f, VT_I4, propVal);
  776. }
  777.  
  778. long _DGTList::GetBorderStyle()
  779. {
  780.     long result;
  781.     GetProperty(0x30, VT_I4, (void*)&result);
  782.     return result;
  783. }
  784.  
  785. void _DGTList::SetBorderStyle(long propVal)
  786. {
  787.     SetProperty(0x30, VT_I4, propVal);
  788. }
  789.  
  790. short _DGTList::GetSubRows()
  791. {
  792.     short result;
  793.     GetProperty(0x31, VT_I2, (void*)&result);
  794.     return result;
  795. }
  796.  
  797. void _DGTList::SetSubRows(short propVal)
  798. {
  799.     SetProperty(0x31, VT_I2, propVal);
  800. }
  801.  
  802. unsigned long _DGTList::GetDefForeColorOdd()
  803. {
  804.     unsigned long result;
  805.     GetProperty(0x32, VT_I4, (void*)&result);
  806.     return result;
  807. }
  808.  
  809. void _DGTList::SetDefForeColorOdd(unsigned long propVal)
  810. {
  811.     SetProperty(0x32, VT_I4, propVal);
  812. }
  813.  
  814. unsigned long _DGTList::GetDefBackColorOdd()
  815. {
  816.     unsigned long result;
  817.     GetProperty(0x33, VT_I4, (void*)&result);
  818.     return result;
  819. }
  820.  
  821. void _DGTList::SetDefBackColorOdd(unsigned long propVal)
  822. {
  823.     SetProperty(0x33, VT_I4, propVal);
  824. }
  825.  
  826. CString _DGTList::Get_Text()
  827. {
  828.     CString result;
  829.     GetProperty(0x0, VT_BSTR, (void*)&result);
  830.     return result;
  831. }
  832.  
  833. void _DGTList::Set_Text(LPCTSTR propVal)
  834. {
  835.     SetProperty(0x0, VT_BSTR, propVal);
  836. }
  837.  
  838. BOOL _DGTList::GetSubRowsStatic()
  839. {
  840.     BOOL result;
  841.     GetProperty(0x34, VT_BOOL, (void*)&result);
  842.     return result;
  843. }
  844.  
  845. void _DGTList::SetSubRowsStatic(BOOL propVal)
  846. {
  847.     SetProperty(0x34, VT_BOOL, propVal);
  848. }
  849.  
  850. BOOL _DGTList::GetColumnResizeElastic()
  851. {
  852.     BOOL result;
  853.     GetProperty(0x35, VT_BOOL, (void*)&result);
  854.     return result;
  855. }
  856.  
  857. void _DGTList::SetColumnResizeElastic(BOOL propVal)
  858. {
  859.     SetProperty(0x35, VT_BOOL, propVal);
  860. }
  861.  
  862. short _DGTList::GetSortKey2()
  863. {
  864.     short result;
  865.     GetProperty(0x36, VT_I2, (void*)&result);
  866.     return result;
  867. }
  868.  
  869. void _DGTList::SetSortKey2(short propVal)
  870. {
  871.     SetProperty(0x36, VT_I2, propVal);
  872. }
  873.  
  874. short _DGTList::GetSortKey3()
  875. {
  876.     short result;
  877.     GetProperty(0x37, VT_I2, (void*)&result);
  878.     return result;
  879. }
  880.  
  881. void _DGTList::SetSortKey3(short propVal)
  882. {
  883.     SetProperty(0x37, VT_I2, propVal);
  884. }
  885.  
  886. BOOL _DGTList::GetScrollTips()
  887. {
  888.     BOOL result;
  889.     GetProperty(0x38, VT_BOOL, (void*)&result);
  890.     return result;
  891. }
  892.  
  893. void _DGTList::SetScrollTips(BOOL propVal)
  894. {
  895.     SetProperty(0x38, VT_BOOL, propVal);
  896. }
  897.  
  898. BOOL _DGTList::GetExtendTips()
  899. {
  900.     BOOL result;
  901.     GetProperty(0x39, VT_BOOL, (void*)&result);
  902.     return result;
  903. }
  904.  
  905. void _DGTList::SetExtendTips(BOOL propVal)
  906. {
  907.     SetProperty(0x39, VT_BOOL, propVal);
  908. }
  909.  
  910. long _DGTList::GetDefWordWrap()
  911. {
  912.     long result;
  913.     GetProperty(0x3a, VT_I4, (void*)&result);
  914.     return result;
  915. }
  916.  
  917. void _DGTList::SetDefWordWrap(long propVal)
  918. {
  919.     SetProperty(0x3a, VT_I4, propVal);
  920. }
  921.  
  922. long _DGTList::GetDefColCaptionTextAlignment()
  923. {
  924.     long result;
  925.     GetProperty(0x3b, VT_I4, (void*)&result);
  926.     return result;
  927. }
  928.  
  929. void _DGTList::SetDefColCaptionTextAlignment(long propVal)
  930. {
  931.     SetProperty(0x3b, VT_I4, propVal);
  932. }
  933.  
  934. long _DGTList::GetDefColCaptionWordWrap()
  935. {
  936.     long result;
  937.     GetProperty(0x3c, VT_I4, (void*)&result);
  938.     return result;
  939. }
  940.  
  941. void _DGTList::SetDefColCaptionWordWrap(long propVal)
  942. {
  943.     SetProperty(0x3c, VT_I4, propVal);
  944. }
  945.  
  946. BOOL _DGTList::GetVirtual()
  947. {
  948.     BOOL result;
  949.     GetProperty(0x3d, VT_BOOL, (void*)&result);
  950.     return result;
  951. }
  952.  
  953. void _DGTList::SetVirtual(BOOL propVal)
  954. {
  955.     SetProperty(0x3d, VT_BOOL, propVal);
  956. }
  957.  
  958. long _DGTList::GetVirtualItemCount()
  959. {
  960.     long result;
  961.     GetProperty(0x3e, VT_I4, (void*)&result);
  962.     return result;
  963. }
  964.  
  965. void _DGTList::SetVirtualItemCount(long propVal)
  966. {
  967.     SetProperty(0x3e, VT_I4, propVal);
  968. }
  969.  
  970. long _DGTList::GetSortOrder2()
  971. {
  972.     long result;
  973.     GetProperty(0x3f, VT_I4, (void*)&result);
  974.     return result;
  975. }
  976.  
  977. void _DGTList::SetSortOrder2(long propVal)
  978. {
  979.     SetProperty(0x3f, VT_I4, propVal);
  980. }
  981.  
  982. long _DGTList::GetSortOrder3()
  983. {
  984.     long result;
  985.     GetProperty(0x40, VT_I4, (void*)&result);
  986.     return result;
  987. }
  988.  
  989. void _DGTList::SetSortOrder3(long propVal)
  990. {
  991.     SetProperty(0x40, VT_I4, propVal);
  992. }
  993.  
  994. BOOL _DGTList::GetAllowColumnSortClick()
  995. {
  996.     BOOL result;
  997.     GetProperty(0x41, VT_BOOL, (void*)&result);
  998.     return result;
  999. }
  1000.  
  1001. void _DGTList::SetAllowColumnSortClick(BOOL propVal)
  1002. {
  1003.     SetProperty(0x41, VT_BOOL, propVal);
  1004. }
  1005.  
  1006. long _DGTList::GetListIndex()
  1007. {
  1008.     long result;
  1009.     GetProperty(0x43, VT_I4, (void*)&result);
  1010.     return result;
  1011. }
  1012.  
  1013. void _DGTList::SetListIndex(long propVal)
  1014. {
  1015.     SetProperty(0x43, VT_I4, propVal);
  1016. }
  1017.  
  1018. unsigned long _DGTList::GetMaskColor()
  1019. {
  1020.     unsigned long result;
  1021.     GetProperty(0x44, VT_I4, (void*)&result);
  1022.     return result;
  1023. }
  1024.  
  1025. void _DGTList::SetMaskColor(unsigned long propVal)
  1026. {
  1027.     SetProperty(0x44, VT_I4, propVal);
  1028. }
  1029.  
  1030. BOOL _DGTList::GetMaskColorEnabled()
  1031. {
  1032.     BOOL result;
  1033.     GetProperty(0x45, VT_BOOL, (void*)&result);
  1034.     return result;
  1035. }
  1036.  
  1037. void _DGTList::SetMaskColorEnabled(BOOL propVal)
  1038. {
  1039.     SetProperty(0x45, VT_BOOL, propVal);
  1040. }
  1041.  
  1042. long _DGTList::GetDynamicCols()
  1043. {
  1044.     long result;
  1045.     GetProperty(0x46, VT_I4, (void*)&result);
  1046.     return result;
  1047. }
  1048.  
  1049. void _DGTList::SetDynamicCols(long propVal)
  1050. {
  1051.     SetProperty(0x46, VT_I4, propVal);
  1052. }
  1053.  
  1054. long _DGTList::GetHorzScrollBar()
  1055. {
  1056.     long result;
  1057.     GetProperty(0x47, VT_I4, (void*)&result);
  1058.     return result;
  1059. }
  1060.  
  1061. void _DGTList::SetHorzScrollBar(long propVal)
  1062. {
  1063.     SetProperty(0x47, VT_I4, propVal);
  1064. }
  1065.  
  1066. BOOL _DGTList::GetColumnCaptions()
  1067. {
  1068.     BOOL result;
  1069.     GetProperty(0x48, VT_BOOL, (void*)&result);
  1070.     return result;
  1071. }
  1072.  
  1073. void _DGTList::SetColumnCaptions(BOOL propVal)
  1074. {
  1075.     SetProperty(0x48, VT_BOOL, propVal);
  1076. }
  1077.  
  1078. LPDISPATCH _DGTList::GetMouseIcon()
  1079. {
  1080.     LPDISPATCH result;
  1081.     GetProperty(0x49, VT_DISPATCH, (void*)&result);
  1082.     return result;
  1083. }
  1084.  
  1085. void _DGTList::SetMouseIcon(LPDISPATCH propVal)
  1086. {
  1087.     SetProperty(0x49, VT_DISPATCH, propVal);
  1088. }
  1089.  
  1090. long _DGTList::GetMousePointer()
  1091. {
  1092.     long result;
  1093.     GetProperty(0x4a, VT_I4, (void*)&result);
  1094.     return result;
  1095. }
  1096.  
  1097. void _DGTList::SetMousePointer(long propVal)
  1098. {
  1099.     SetProperty(0x4a, VT_I4, propVal);
  1100. }
  1101.  
  1102. VARIANT _DGTList::GetBookmark()
  1103. {
  1104.     VARIANT result;
  1105.     GetProperty(0x4b, VT_VARIANT, (void*)&result);
  1106.     return result;
  1107. }
  1108.  
  1109. void _DGTList::SetBookmark(const VARIANT& propVal)
  1110. {
  1111.     SetProperty(0x4b, VT_VARIANT, &propVal);
  1112. }
  1113.  
  1114. VARIANT _DGTList::GetTopBookmark()
  1115. {
  1116.     VARIANT result;
  1117.     GetProperty(0x4c, VT_VARIANT, (void*)&result);
  1118.     return result;
  1119. }
  1120.  
  1121. void _DGTList::SetTopBookmark(const VARIANT& propVal)
  1122. {
  1123.     SetProperty(0x4c, VT_VARIANT, &propVal);
  1124. }
  1125.  
  1126. unsigned long _DGTList::GetSelectedBackColor()
  1127. {
  1128.     unsigned long result;
  1129.     GetProperty(0x4d, VT_I4, (void*)&result);
  1130.     return result;
  1131. }
  1132.  
  1133. void _DGTList::SetSelectedBackColor(unsigned long propVal)
  1134. {
  1135.     SetProperty(0x4d, VT_I4, propVal);
  1136. }
  1137.  
  1138. unsigned long _DGTList::GetSelectedForeColor()
  1139. {
  1140.     unsigned long result;
  1141.     GetProperty(0x4e, VT_I4, (void*)&result);
  1142.     return result;
  1143. }
  1144.  
  1145. void _DGTList::SetSelectedForeColor(unsigned long propVal)
  1146. {
  1147.     SetProperty(0x4e, VT_I4, propVal);
  1148. }
  1149.  
  1150. /////////////////////////////////////////////////////////////////////////////
  1151. // _DGTList operations
  1152.  
  1153. BOOL _DGTList::GetSelected(long Index)
  1154. {
  1155.     BOOL result;
  1156.     static BYTE parms[] =
  1157.         VTS_I4;
  1158.     InvokeHelper(0x55, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, parms,
  1159.         Index);
  1160.     return result;
  1161. }
  1162.  
  1163. void _DGTList::SetSelected(long Index, BOOL bNewValue)
  1164. {
  1165.     static BYTE parms[] =
  1166.         VTS_I4 VTS_BOOL;
  1167.     InvokeHelper(0x55, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1168.          Index, bNewValue);
  1169. }
  1170.  
  1171. long _DGTList::GetItemData(long Index)
  1172. {
  1173.     long result;
  1174.     static BYTE parms[] =
  1175.         VTS_I4;
  1176.     InvokeHelper(0x56, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, parms,
  1177.         Index);
  1178.     return result;
  1179. }
  1180.  
  1181. void _DGTList::SetItemData(long Index, long nNewValue)
  1182. {
  1183.     static BYTE parms[] =
  1184.         VTS_I4 VTS_I4;
  1185.     InvokeHelper(0x56, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1186.          Index, nNewValue);
  1187. }
  1188.  
  1189. LPDISPATCH _DGTList::GetListItems(const VARIANT& Index)
  1190. {
  1191.     LPDISPATCH result;
  1192.     static BYTE parms[] =
  1193.         VTS_VARIANT;
  1194.     InvokeHelper(0x57, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, parms,
  1195.         &Index);
  1196.     return result;
  1197. }
  1198.  
  1199. void _DGTList::SetListItems(const VARIANT& Index, LPDISPATCH newValue)
  1200. {
  1201.     static BYTE parms[] =
  1202.         VTS_VARIANT VTS_DISPATCH;
  1203.     InvokeHelper(0x57, DISPATCH_PROPERTYPUTREF, VT_EMPTY, NULL, parms,
  1204.          &Index, newValue);
  1205. }
  1206.  
  1207. LPDISPATCH _DGTList::GetColumnDefs(const VARIANT& Index)
  1208. {
  1209.     LPDISPATCH result;
  1210.     static BYTE parms[] =
  1211.         VTS_VARIANT;
  1212.     InvokeHelper(0x58, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, parms,
  1213.         &Index);
  1214.     return result;
  1215. }
  1216.  
  1217. void _DGTList::SetColumnDefs(const VARIANT& Index, LPDISPATCH newValue)
  1218. {
  1219.     static BYTE parms[] =
  1220.         VTS_VARIANT VTS_DISPATCH;
  1221.     InvokeHelper(0x58, DISPATCH_PROPERTYPUTREF, VT_EMPTY, NULL, parms,
  1222.          &Index, newValue);
  1223. }
  1224.  
  1225. LPDISPATCH _DGTList::GetListImages(const VARIANT& Index)
  1226. {
  1227.     LPDISPATCH result;
  1228.     static BYTE parms[] =
  1229.         VTS_VARIANT;
  1230.     InvokeHelper(0x59, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, parms,
  1231.         &Index);
  1232.     return result;
  1233. }
  1234.  
  1235. void _DGTList::SetListImages(const VARIANT& Index, LPDISPATCH newValue)
  1236. {
  1237.     static BYTE parms[] =
  1238.         VTS_VARIANT VTS_DISPATCH;
  1239.     InvokeHelper(0x59, DISPATCH_PROPERTYPUTREF, VT_EMPTY, NULL, parms,
  1240.          &Index, newValue);
  1241. }
  1242.  
  1243. void _DGTList::Clear()
  1244. {
  1245.     InvokeHelper(0x4f, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  1246. }
  1247.  
  1248. void _DGTList::Refresh()
  1249. {
  1250.     InvokeHelper(DISPID_REFRESH, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  1251. }
  1252.  
  1253. void _DGTList::RemoveItem(long Index)
  1254. {
  1255.     static BYTE parms[] =
  1256.         VTS_I4;
  1257.     InvokeHelper(0x50, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  1258.          Index);
  1259. }
  1260.  
  1261. void _DGTList::AddItem(LPCTSTR Item, const VARIANT& Index)
  1262. {
  1263.     static BYTE parms[] =
  1264.         VTS_BSTR VTS_VARIANT;
  1265.     InvokeHelper(0x51, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  1266.          Item, &Index);
  1267. }
  1268.  
  1269. void _DGTList::ClearCache()
  1270. {
  1271.     InvokeHelper(0x52, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  1272. }
  1273.  
  1274. short _DGTList::GetLeftColumn(const VARIANT& SubRow)
  1275. {
  1276.     short result;
  1277.     static BYTE parms[] =
  1278.         VTS_VARIANT;
  1279.     InvokeHelper(0x5a, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, parms,
  1280.         &SubRow);
  1281.     return result;
  1282. }
  1283.  
  1284. void _DGTList::SetLeftColumn(const VARIANT& SubRow, short nNewValue)
  1285. {
  1286.     static BYTE parms[] =
  1287.         VTS_VARIANT VTS_I2;
  1288.     InvokeHelper(0x5a, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1289.          &SubRow, nNewValue);
  1290. }
  1291.  
  1292. short _DGTList::HitTest(float x, float y)
  1293. {
  1294.     short result;
  1295.     static BYTE parms[] =
  1296.         VTS_R4 VTS_R4;
  1297.     InvokeHelper(0x53, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1298.         x, y);
  1299.     return result;
  1300. }
  1301.  
  1302. short _DGTList::HitTestItem(float x, float y, LPDISPATCH* ListItem, LPDISPATCH* SubItem)
  1303. {
  1304.     short result;
  1305.     static BYTE parms[] =
  1306.         VTS_R4 VTS_R4 VTS_PDISPATCH VTS_PDISPATCH;
  1307.     InvokeHelper(0x54, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  1308.         x, y, ListItem, SubItem);
  1309.     return result;
  1310. }
  1311.  
  1312. VARIANT _DGTList::GetSelBookmarks(long Index)
  1313. {
  1314.     VARIANT result;
  1315.     static BYTE parms[] =
  1316.         VTS_I4;
  1317.     InvokeHelper(0x5b, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, parms,
  1318.         Index);
  1319.     return result;
  1320. }
  1321.  
  1322. void _DGTList::SetSelBookmarks(long Index, const VARIANT& newValue)
  1323. {
  1324.     static BYTE parms[] =
  1325.         VTS_I4 VTS_VARIANT;
  1326.     InvokeHelper(0x5b, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1327.          Index, &newValue);
  1328. }
  1329.  
  1330. long _DGTList::GetSelIndices(long Index)
  1331. {
  1332.     long result;
  1333.     static BYTE parms[] =
  1334.         VTS_I4;
  1335.     InvokeHelper(0x5c, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, parms,
  1336.         Index);
  1337.     return result;
  1338. }
  1339.  
  1340. void _DGTList::SetSelIndices(long Index, long nNewValue)
  1341. {
  1342.     static BYTE parms[] =
  1343.         VTS_I4 VTS_I4;
  1344.     InvokeHelper(0x5c, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1345.          Index, nNewValue);
  1346. }
  1347.  
  1348. void _DGTList::AboutBox()
  1349. {
  1350.     InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  1351. }
  1352.  
  1353.  
  1354. /////////////////////////////////////////////////////////////////////////////
  1355. // _DGTCombo properties
  1356.  
  1357. BOOL _DGTCombo::GetAllowColumnDragDrop()
  1358. {
  1359.     BOOL result;
  1360.     GetProperty(0x2, VT_BOOL, (void*)&result);
  1361.     return result;
  1362. }
  1363.  
  1364. void _DGTCombo::SetAllowColumnDragDrop(BOOL propVal)
  1365. {
  1366.     SetProperty(0x2, VT_BOOL, propVal);
  1367. }
  1368.  
  1369. OLE_COLOR _DGTCombo::GetBackColor()
  1370. {
  1371.     OLE_COLOR result;
  1372.     GetProperty(DISPID_BACKCOLOR, VT_I4, (void*)&result);
  1373.     return result;
  1374. }
  1375.  
  1376. void _DGTCombo::SetBackColor(OLE_COLOR propVal)
  1377. {
  1378.     SetProperty(DISPID_BACKCOLOR, VT_I4, propVal);
  1379. }
  1380.  
  1381. BOOL _DGTCombo::GetEnabled()
  1382. {
  1383.     BOOL result;
  1384.     GetProperty(DISPID_ENABLED, VT_BOOL, (void*)&result);
  1385.     return result;
  1386. }
  1387.  
  1388. void _DGTCombo::SetEnabled(BOOL propVal)
  1389. {
  1390.     SetProperty(DISPID_ENABLED, VT_BOOL, propVal);
  1391. }
  1392.  
  1393. OLE_HANDLE _DGTCombo::GetHWnd()
  1394. {
  1395.     OLE_HANDLE result;
  1396.     GetProperty(DISPID_HWND, VT_I4, (void*)&result);
  1397.     return result;
  1398. }
  1399.  
  1400. void _DGTCombo::SetHWnd(OLE_HANDLE propVal)
  1401. {
  1402.     SetProperty(DISPID_HWND, VT_I4, propVal);
  1403. }
  1404.  
  1405. CString _DGTCombo::GetText()
  1406. {
  1407.     CString result;
  1408.     GetProperty(DISPID_TEXT, VT_BSTR, (void*)&result);
  1409.     return result;
  1410. }
  1411.  
  1412. void _DGTCombo::SetText(LPCTSTR propVal)
  1413. {
  1414.     SetProperty(DISPID_TEXT, VT_BSTR, propVal);
  1415. }
  1416.  
  1417. BOOL _DGTCombo::GetAllowColumnResize()
  1418. {
  1419.     BOOL result;
  1420.     GetProperty(0x3, VT_BOOL, (void*)&result);
  1421.     return result;
  1422. }
  1423.  
  1424. void _DGTCombo::SetAllowColumnResize(BOOL propVal)
  1425. {
  1426.     SetProperty(0x3, VT_BOOL, propVal);
  1427. }
  1428.  
  1429. BOOL _DGTCombo::GetHideSelection()
  1430. {
  1431.     BOOL result;
  1432.     GetProperty(0x4, VT_BOOL, (void*)&result);
  1433.     return result;
  1434. }
  1435.  
  1436. void _DGTCombo::SetHideSelection(BOOL propVal)
  1437. {
  1438.     SetProperty(0x4, VT_BOOL, propVal);
  1439. }
  1440.  
  1441. CString _DGTCombo::GetImageList()
  1442. {
  1443.     CString result;
  1444.     GetProperty(0x5, VT_BSTR, (void*)&result);
  1445.     return result;
  1446. }
  1447.  
  1448. void _DGTCombo::SetImageList(LPCTSTR propVal)
  1449. {
  1450.     SetProperty(0x5, VT_BSTR, propVal);
  1451. }
  1452.  
  1453. long _DGTCombo::GetListCount()
  1454. {
  1455.     long result;
  1456.     GetProperty(0x6, VT_I4, (void*)&result);
  1457.     return result;
  1458. }
  1459.  
  1460. void _DGTCombo::SetListCount(long propVal)
  1461. {
  1462.     SetProperty(0x6, VT_I4, propVal);
  1463. }
  1464.  
  1465. long _DGTCombo::GetNewIndex()
  1466. {
  1467.     long result;
  1468.     GetProperty(0x7, VT_I4, (void*)&result);
  1469.     return result;
  1470. }
  1471.  
  1472. void _DGTCombo::SetNewIndex(long propVal)
  1473. {
  1474.     SetProperty(0x7, VT_I4, propVal);
  1475. }
  1476.  
  1477. LPDISPATCH _DGTCombo::GetPicture()
  1478. {
  1479.     LPDISPATCH result;
  1480.     GetProperty(0x8, VT_DISPATCH, (void*)&result);
  1481.     return result;
  1482. }
  1483.  
  1484. void _DGTCombo::SetPicture(LPDISPATCH propVal)
  1485. {
  1486.     SetProperty(0x8, VT_DISPATCH, propVal);
  1487. }
  1488.  
  1489. long _DGTCombo::GetPictureAlignment()
  1490. {
  1491.     long result;
  1492.     GetProperty(0x9, VT_I4, (void*)&result);
  1493.     return result;
  1494. }
  1495.  
  1496. void _DGTCombo::SetPictureAlignment(long propVal)
  1497. {
  1498.     SetProperty(0x9, VT_I4, propVal);
  1499. }
  1500.  
  1501. unsigned long _DGTCombo::GetScrollTipBackColor()
  1502. {
  1503.     unsigned long result;
  1504.     GetProperty(0xa, VT_I4, (void*)&result);
  1505.     return result;
  1506. }
  1507.  
  1508. void _DGTCombo::SetScrollTipBackColor(unsigned long propVal)
  1509. {
  1510.     SetProperty(0xa, VT_I4, propVal);
  1511. }
  1512.  
  1513. CString _DGTCombo::GetScrollTipDataField()
  1514. {
  1515.     CString result;
  1516.     GetProperty(0xb, VT_BSTR, (void*)&result);
  1517.     return result;
  1518. }
  1519.  
  1520. void _DGTCombo::SetScrollTipDataField(LPCTSTR propVal)
  1521. {
  1522.     SetProperty(0xb, VT_BSTR, propVal);
  1523. }
  1524.  
  1525. LPDISPATCH _DGTCombo::GetScrollTipFont()
  1526. {
  1527.     LPDISPATCH result;
  1528.     GetProperty(0xc, VT_DISPATCH, (void*)&result);
  1529.     return result;
  1530. }
  1531.  
  1532. void _DGTCombo::SetScrollTipFont(LPDISPATCH propVal)
  1533. {
  1534.     SetProperty(0xc, VT_DISPATCH, propVal);
  1535. }
  1536.  
  1537. unsigned long _DGTCombo::GetScrollTipForeColor()
  1538. {
  1539.     unsigned long result;
  1540.     GetProperty(0xd, VT_I4, (void*)&result);
  1541.     return result;
  1542. }
  1543.  
  1544. void _DGTCombo::SetScrollTipForeColor(unsigned long propVal)
  1545. {
  1546.     SetProperty(0xd, VT_I4, propVal);
  1547. }
  1548.  
  1549. long _DGTCombo::GetSelCount()
  1550. {
  1551.     long result;
  1552.     GetProperty(0xe, VT_I4, (void*)&result);
  1553.     return result;
  1554. }
  1555.  
  1556. void _DGTCombo::SetSelCount(long propVal)
  1557. {
  1558.     SetProperty(0xe, VT_I4, propVal);
  1559. }
  1560.  
  1561. LPDISPATCH _DGTCombo::GetSelectedItem()
  1562. {
  1563.     LPDISPATCH result;
  1564.     GetProperty(0xf, VT_DISPATCH, (void*)&result);
  1565.     return result;
  1566. }
  1567.  
  1568. void _DGTCombo::SetSelectedItem(LPDISPATCH propVal)
  1569. {
  1570.     SetProperty(0xf, VT_DISPATCH, propVal);
  1571. }
  1572.  
  1573. BOOL _DGTCombo::GetSorted()
  1574. {
  1575.     BOOL result;
  1576.     GetProperty(0x10, VT_BOOL, (void*)&result);
  1577.     return result;
  1578. }
  1579.  
  1580. void _DGTCombo::SetSorted(BOOL propVal)
  1581. {
  1582.     SetProperty(0x10, VT_BOOL, propVal);
  1583. }
  1584.  
  1585. short _DGTCombo::GetSortKey()
  1586. {
  1587.     short result;
  1588.     GetProperty(0x11, VT_I2, (void*)&result);
  1589.     return result;
  1590. }
  1591.  
  1592. void _DGTCombo::SetSortKey(short propVal)
  1593. {
  1594.     SetProperty(0x11, VT_I2, propVal);
  1595. }
  1596.  
  1597. long _DGTCombo::GetSortOrder()
  1598. {
  1599.     long result;
  1600.     GetProperty(0x12, VT_I4, (void*)&result);
  1601.     return result;
  1602. }
  1603.  
  1604. void _DGTCombo::SetSortOrder(long propVal)
  1605. {
  1606.     SetProperty(0x12, VT_I4, propVal);
  1607. }
  1608.  
  1609. VARIANT _DGTCombo::GetTagVariant()
  1610. {
  1611.     VARIANT result;
  1612.     GetProperty(0x13, VT_VARIANT, (void*)&result);
  1613.     return result;
  1614. }
  1615.  
  1616. void _DGTCombo::SetTagVariant(const VARIANT& propVal)
  1617. {
  1618.     SetProperty(0x13, VT_VARIANT, &propVal);
  1619. }
  1620.  
  1621. unsigned long _DGTCombo::GetExtendTipBackColor()
  1622. {
  1623.     unsigned long result;
  1624.     GetProperty(0x14, VT_I4, (void*)&result);
  1625.     return result;
  1626. }
  1627.  
  1628. void _DGTCombo::SetExtendTipBackColor(unsigned long propVal)
  1629. {
  1630.     SetProperty(0x14, VT_I4, propVal);
  1631. }
  1632.  
  1633. CString _DGTCombo::GetExtendTipDataField()
  1634. {
  1635.     CString result;
  1636.     GetProperty(0x15, VT_BSTR, (void*)&result);
  1637.     return result;
  1638. }
  1639.  
  1640. void _DGTCombo::SetExtendTipDataField(LPCTSTR propVal)
  1641. {
  1642.     SetProperty(0x15, VT_BSTR, propVal);
  1643. }
  1644.  
  1645. long _DGTCombo::GetExtendTipDelay()
  1646. {
  1647.     long result;
  1648.     GetProperty(0x16, VT_I4, (void*)&result);
  1649.     return result;
  1650. }
  1651.  
  1652. void _DGTCombo::SetExtendTipDelay(long propVal)
  1653. {
  1654.     SetProperty(0x16, VT_I4, propVal);
  1655. }
  1656.  
  1657. LPDISPATCH _DGTCombo::GetExtendTipFont()
  1658. {
  1659.     LPDISPATCH result;
  1660.     GetProperty(0x17, VT_DISPATCH, (void*)&result);
  1661.     return result;
  1662. }
  1663.  
  1664. void _DGTCombo::SetExtendTipFont(LPDISPATCH propVal)
  1665. {
  1666.     SetProperty(0x17, VT_DISPATCH, propVal);
  1667. }
  1668.  
  1669. unsigned long _DGTCombo::GetExtendTipForeColor()
  1670. {
  1671.     unsigned long result;
  1672.     GetProperty(0x18, VT_I4, (void*)&result);
  1673.     return result;
  1674. }
  1675.  
  1676. void _DGTCombo::SetExtendTipForeColor(unsigned long propVal)
  1677. {
  1678.     SetProperty(0x18, VT_I4, propVal);
  1679. }
  1680.  
  1681. long _DGTCombo::GetExtendTipTimeout()
  1682. {
  1683.     long result;
  1684.     GetProperty(0x19, VT_I4, (void*)&result);
  1685.     return result;
  1686. }
  1687.  
  1688. void _DGTCombo::SetExtendTipTimeout(long propVal)
  1689. {
  1690.     SetProperty(0x19, VT_I4, propVal);
  1691. }
  1692.  
  1693. long _DGTCombo::GetTopIndex()
  1694. {
  1695.     long result;
  1696.     GetProperty(0x1a, VT_I4, (void*)&result);
  1697.     return result;
  1698. }
  1699.  
  1700. void _DGTCombo::SetTopIndex(long propVal)
  1701. {
  1702.     SetProperty(0x1a, VT_I4, propVal);
  1703. }
  1704.  
  1705. long _DGTCombo::GetVertScrollBar()
  1706. {
  1707.     long result;
  1708.     GetProperty(0x1b, VT_I4, (void*)&result);
  1709.     return result;
  1710. }
  1711.  
  1712. void _DGTCombo::SetVertScrollBar(long propVal)
  1713. {
  1714.     SetProperty(0x1b, VT_I4, propVal);
  1715. }
  1716.  
  1717. long _DGTCombo::GetComboStyle()
  1718. {
  1719.     long result;
  1720.     GetProperty(0x1c, VT_I4, (void*)&result);
  1721.     return result;
  1722. }
  1723.  
  1724. void _DGTCombo::SetComboStyle(long propVal)
  1725. {
  1726.     SetProperty(0x1c, VT_I4, propVal);
  1727. }
  1728.  
  1729. short _DGTCombo::GetSelLength()
  1730. {
  1731.     short result;
  1732.     GetProperty(0x1d, VT_I2, (void*)&result);
  1733.     return result;
  1734. }
  1735.  
  1736. void _DGTCombo::SetSelLength(short propVal)
  1737. {
  1738.     SetProperty(0x1d, VT_I2, propVal);
  1739. }
  1740.  
  1741. short _DGTCombo::GetSelStart()
  1742. {
  1743.     short result;
  1744.     GetProperty(0x1e, VT_I2, (void*)&result);
  1745.     return result;
  1746. }
  1747.  
  1748. void _DGTCombo::SetSelStart(short propVal)
  1749. {
  1750.     SetProperty(0x1e, VT_I2, propVal);
  1751. }
  1752.  
  1753. CString _DGTCombo::GetSelText()
  1754. {
  1755.     CString result;
  1756.     GetProperty(0x1f, VT_BSTR, (void*)&result);
  1757.     return result;
  1758. }
  1759.  
  1760. void _DGTCombo::SetSelText(LPCTSTR propVal)
  1761. {
  1762.     SetProperty(0x1f, VT_BSTR, propVal);
  1763. }
  1764.  
  1765. short _DGTCombo::GetMinDropDownItems()
  1766. {
  1767.     short result;
  1768.     GetProperty(0x20, VT_I2, (void*)&result);
  1769.     return result;
  1770. }
  1771.  
  1772. void _DGTCombo::SetMinDropDownItems(short propVal)
  1773. {
  1774.     SetProperty(0x20, VT_I2, propVal);
  1775. }
  1776.  
  1777. short _DGTCombo::GetMaxDropDownItems()
  1778. {
  1779.     short result;
  1780.     GetProperty(0x21, VT_I2, (void*)&result);
  1781.     return result;
  1782. }
  1783.  
  1784. void _DGTCombo::SetMaxDropDownItems(short propVal)
  1785. {
  1786.     SetProperty(0x21, VT_I2, propVal);
  1787. }
  1788.  
  1789. unsigned long _DGTCombo::GetDefColCaptionBackColor()
  1790. {
  1791.     unsigned long result;
  1792.     GetProperty(0x22, VT_I4, (void*)&result);
  1793.     return result;
  1794. }
  1795.  
  1796. void _DGTCombo::SetDefColCaptionBackColor(unsigned long propVal)
  1797. {
  1798.     SetProperty(0x22, VT_I4, propVal);
  1799. }
  1800.  
  1801. long _DGTCombo::GetDefColCaptionFont3D()
  1802. {
  1803.     long result;
  1804.     GetProperty(0x23, VT_I4, (void*)&result);
  1805.     return result;
  1806. }
  1807.  
  1808. void _DGTCombo::SetDefColCaptionFont3D(long propVal)
  1809. {
  1810.     SetProperty(0x23, VT_I4, propVal);
  1811. }
  1812.  
  1813. LPDISPATCH _DGTCombo::GetDefColCaptionFont()
  1814. {
  1815.     LPDISPATCH result;
  1816.     GetProperty(0x24, VT_DISPATCH, (void*)&result);
  1817.     return result;
  1818. }
  1819.  
  1820. void _DGTCombo::SetDefColCaptionFont(LPDISPATCH propVal)
  1821. {
  1822.     SetProperty(0x24, VT_DISPATCH, propVal);
  1823. }
  1824.  
  1825. unsigned long _DGTCombo::GetDefColCaptionForeColor()
  1826. {
  1827.     unsigned long result;
  1828.     GetProperty(0x25, VT_I4, (void*)&result);
  1829.     return result;
  1830. }
  1831.  
  1832. void _DGTCombo::SetDefColCaptionForeColor(unsigned long propVal)
  1833. {
  1834.     SetProperty(0x25, VT_I4, propVal);
  1835. }
  1836.  
  1837. long _DGTCombo::GetDefColCaptionPictureAlignment()
  1838. {
  1839.     long result;
  1840.     GetProperty(0x26, VT_I4, (void*)&result);
  1841.     return result;
  1842. }
  1843.  
  1844. void _DGTCombo::SetDefColCaptionPictureAlignment(long propVal)
  1845. {
  1846.     SetProperty(0x26, VT_I4, propVal);
  1847. }
  1848.  
  1849. long _DGTCombo::GetDefColCaptionTextAlignment()
  1850. {
  1851.     long result;
  1852.     GetProperty(0x27, VT_I4, (void*)&result);
  1853.     return result;
  1854. }
  1855.  
  1856. void _DGTCombo::SetDefColCaptionTextAlignment(long propVal)
  1857. {
  1858.     SetProperty(0x27, VT_I4, propVal);
  1859. }
  1860.  
  1861. float _DGTCombo::GetDefColumnWidth()
  1862. {
  1863.     float result;
  1864.     GetProperty(0x28, VT_R4, (void*)&result);
  1865.     return result;
  1866. }
  1867.  
  1868. void _DGTCombo::SetDefColumnWidth(float propVal)
  1869. {
  1870.     SetProperty(0x28, VT_R4, propVal);
  1871. }
  1872.  
  1873. long _DGTCombo::GetDefColCaptionBorderStyle()
  1874. {
  1875.     long result;
  1876.     GetProperty(0x29, VT_I4, (void*)&result);
  1877.     return result;
  1878. }
  1879.  
  1880. void _DGTCombo::SetDefColCaptionBorderStyle(long propVal)
  1881. {
  1882.     SetProperty(0x29, VT_I4, propVal);
  1883. }
  1884.  
  1885. float _DGTCombo::GetDefRowHeight()
  1886. {
  1887.     float result;
  1888.     GetProperty(0x2a, VT_R4, (void*)&result);
  1889.     return result;
  1890. }
  1891.  
  1892. void _DGTCombo::SetDefRowHeight(float propVal)
  1893. {
  1894.     SetProperty(0x2a, VT_R4, propVal);
  1895. }
  1896.  
  1897. float _DGTCombo::GetColumnHeaderHeight()
  1898. {
  1899.     float result;
  1900.     GetProperty(0x2b, VT_R4, (void*)&result);
  1901.     return result;
  1902. }
  1903.  
  1904. void _DGTCombo::SetColumnHeaderHeight(float propVal)
  1905. {
  1906.     SetProperty(0x2b, VT_R4, propVal);
  1907. }
  1908.  
  1909. float _DGTCombo::GetDropDownWidth()
  1910. {
  1911.     float result;
  1912.     GetProperty(0x2c, VT_R4, (void*)&result);
  1913.     return result;
  1914. }
  1915.  
  1916. void _DGTCombo::SetDropDownWidth(float propVal)
  1917. {
  1918.     SetProperty(0x2c, VT_R4, propVal);
  1919. }
  1920.  
  1921. unsigned long _DGTCombo::GetDefBackColor()
  1922. {
  1923.     unsigned long result;
  1924.     GetProperty(0x2d, VT_I4, (void*)&result);
  1925.     return result;
  1926. }
  1927.  
  1928. void _DGTCombo::SetDefBackColor(unsigned long propVal)
  1929. {
  1930.     SetProperty(0x2d, VT_I4, propVal);
  1931. }
  1932.  
  1933. LPDISPATCH _DGTCombo::GetDefFont()
  1934. {
  1935.     LPDISPATCH result;
  1936.     GetProperty(0x2e, VT_DISPATCH, (void*)&result);
  1937.     return result;
  1938. }
  1939.  
  1940. void _DGTCombo::SetDefFont(LPDISPATCH propVal)
  1941. {
  1942.     SetProperty(0x2e, VT_DISPATCH, propVal);
  1943. }
  1944.  
  1945. short _DGTCombo::GetDefFont3D()
  1946. {
  1947.     short result;
  1948.     GetProperty(0x2f, VT_I2, (void*)&result);
  1949.     return result;
  1950. }
  1951.  
  1952. void _DGTCombo::SetDefFont3D(short propVal)
  1953. {
  1954.     SetProperty(0x2f, VT_I2, propVal);
  1955. }
  1956.  
  1957. unsigned long _DGTCombo::GetDefForeColor()
  1958. {
  1959.     unsigned long result;
  1960.     GetProperty(0x30, VT_I4, (void*)&result);
  1961.     return result;
  1962. }
  1963.  
  1964. void _DGTCombo::SetDefForeColor(unsigned long propVal)
  1965. {
  1966.     SetProperty(0x30, VT_I4, propVal);
  1967. }
  1968.  
  1969. long _DGTCombo::GetDefPictureAlignment()
  1970. {
  1971.     long result;
  1972.     GetProperty(0x31, VT_I4, (void*)&result);
  1973.     return result;
  1974. }
  1975.  
  1976. void _DGTCombo::SetDefPictureAlignment(long propVal)
  1977. {
  1978.     SetProperty(0x31, VT_I4, propVal);
  1979. }
  1980.  
  1981. short _DGTCombo::GetDefTextAlignment()
  1982. {
  1983.     short result;
  1984.     GetProperty(0x32, VT_I2, (void*)&result);
  1985.     return result;
  1986. }
  1987.  
  1988. void _DGTCombo::SetDefTextAlignment(short propVal)
  1989. {
  1990.     SetProperty(0x32, VT_I2, propVal);
  1991. }
  1992.  
  1993. LPFONTDISP _DGTCombo::GetFont()
  1994. {
  1995.     LPFONTDISP result;
  1996.     GetProperty(DISPID_FONT, VT_DISPATCH, (void*)&result);
  1997.     return result;
  1998. }
  1999.  
  2000. void _DGTCombo::SetFont(LPFONTDISP propVal)
  2001. {
  2002.     SetProperty(DISPID_FONT, VT_DISPATCH, propVal);
  2003. }
  2004.  
  2005. long _DGTCombo::GetAppearance()
  2006. {
  2007.     long result;
  2008.     GetProperty(0x33, VT_I4, (void*)&result);
  2009.     return result;
  2010. }
  2011.  
  2012. void _DGTCombo::SetAppearance(long propVal)
  2013. {
  2014.     SetProperty(0x33, VT_I4, propVal);
  2015. }
  2016.  
  2017. BOOL _DGTCombo::GetCalcRowCountOnLoad()
  2018. {
  2019.     BOOL result;
  2020.     GetProperty(0x34, VT_BOOL, (void*)&result);
  2021.     return result;
  2022. }
  2023.  
  2024. void _DGTCombo::SetCalcRowCountOnLoad(BOOL propVal)
  2025. {
  2026.     SetProperty(0x34, VT_BOOL, propVal);
  2027. }
  2028.  
  2029. long _DGTCombo::GetGridLineType()
  2030. {
  2031.     long result;
  2032.     GetProperty(0x35, VT_I4, (void*)&result);
  2033.     return result;
  2034. }
  2035.  
  2036. void _DGTCombo::SetGridLineType(long propVal)
  2037. {
  2038.     SetProperty(0x35, VT_I4, propVal);
  2039. }
  2040.  
  2041. long _DGTCombo::GetGridLineStyle()
  2042. {
  2043.     long result;
  2044.     GetProperty(0x36, VT_I4, (void*)&result);
  2045.     return result;
  2046. }
  2047.  
  2048. void _DGTCombo::SetGridLineStyle(long propVal)
  2049. {
  2050.     SetProperty(0x36, VT_I4, propVal);
  2051. }
  2052.  
  2053. unsigned long _DGTCombo::GetGridLineColor()
  2054. {
  2055.     unsigned long result;
  2056.     GetProperty(0x37, VT_I4, (void*)&result);
  2057.     return result;
  2058. }
  2059.  
  2060. void _DGTCombo::SetGridLineColor(unsigned long propVal)
  2061. {
  2062.     SetProperty(0x37, VT_I4, propVal);
  2063. }
  2064.  
  2065. long _DGTCombo::GetBorderStyle()
  2066. {
  2067.     long result;
  2068.     GetProperty(0x38, VT_I4, (void*)&result);
  2069.     return result;
  2070. }
  2071.  
  2072. void _DGTCombo::SetBorderStyle(long propVal)
  2073. {
  2074.     SetProperty(0x38, VT_I4, propVal);
  2075. }
  2076.  
  2077. CString _DGTCombo::Get_Text()
  2078. {
  2079.     CString result;
  2080.     GetProperty(0x0, VT_BSTR, (void*)&result);
  2081.     return result;
  2082. }
  2083.  
  2084. void _DGTCombo::Set_Text(LPCTSTR propVal)
  2085. {
  2086.     SetProperty(0x0, VT_BSTR, propVal);
  2087. }
  2088.  
  2089. OLE_COLOR _DGTCombo::GetForeColor()
  2090. {
  2091.     OLE_COLOR result;
  2092.     GetProperty(DISPID_FORECOLOR, VT_I4, (void*)&result);
  2093.     return result;
  2094. }
  2095.  
  2096. void _DGTCombo::SetForeColor(OLE_COLOR propVal)
  2097. {
  2098.     SetProperty(DISPID_FORECOLOR, VT_I4, propVal);
  2099. }
  2100.  
  2101. short _DGTCombo::GetSubRows()
  2102. {
  2103.     short result;
  2104.     GetProperty(0x39, VT_I2, (void*)&result);
  2105.     return result;
  2106. }
  2107.  
  2108. void _DGTCombo::SetSubRows(short propVal)
  2109. {
  2110.     SetProperty(0x39, VT_I2, propVal);
  2111. }
  2112.  
  2113. unsigned long _DGTCombo::GetDefBackColorOdd()
  2114. {
  2115.     unsigned long result;
  2116.     GetProperty(0x3a, VT_I4, (void*)&result);
  2117.     return result;
  2118. }
  2119.  
  2120. void _DGTCombo::SetDefBackColorOdd(unsigned long propVal)
  2121. {
  2122.     SetProperty(0x3a, VT_I4, propVal);
  2123. }
  2124.  
  2125. unsigned long _DGTCombo::GetDefForeColorOdd()
  2126. {
  2127.     unsigned long result;
  2128.     GetProperty(0x3b, VT_I4, (void*)&result);
  2129.     return result;
  2130. }
  2131.  
  2132. void _DGTCombo::SetDefForeColorOdd(unsigned long propVal)
  2133. {
  2134.     SetProperty(0x3b, VT_I4, propVal);
  2135. }
  2136.  
  2137. BOOL _DGTCombo::GetSubRowsStatic()
  2138. {
  2139.     BOOL result;
  2140.     GetProperty(0x3c, VT_BOOL, (void*)&result);
  2141.     return result;
  2142. }
  2143.  
  2144. void _DGTCombo::SetSubRowsStatic(BOOL propVal)
  2145. {
  2146.     SetProperty(0x3c, VT_BOOL, propVal);
  2147. }
  2148.  
  2149. BOOL _DGTCombo::GetColumnResizeElastic()
  2150. {
  2151.     BOOL result;
  2152.     GetProperty(0x3d, VT_BOOL, (void*)&result);
  2153.     return result;
  2154. }
  2155.  
  2156. void _DGTCombo::SetColumnResizeElastic(BOOL propVal)
  2157. {
  2158.     SetProperty(0x3d, VT_BOOL, propVal);
  2159. }
  2160.  
  2161. CString _DGTCombo::GetDataFieldDisplay()
  2162. {
  2163.     CString result;
  2164.     GetProperty(0x3e, VT_BSTR, (void*)&result);
  2165.     return result;
  2166. }
  2167.  
  2168. void _DGTCombo::SetDataFieldDisplay(LPCTSTR propVal)
  2169. {
  2170.     SetProperty(0x3e, VT_BSTR, propVal);
  2171. }
  2172.  
  2173. CString _DGTCombo::GetDataFieldList()
  2174. {
  2175.     CString result;
  2176.     GetProperty(0x3f, VT_BSTR, (void*)&result);
  2177.     return result;
  2178. }
  2179.  
  2180. void _DGTCombo::SetDataFieldList(LPCTSTR propVal)
  2181. {
  2182.     SetProperty(0x3f, VT_BSTR, propVal);
  2183. }
  2184.  
  2185. CString _DGTCombo::GetDisplayText()
  2186. {
  2187.     CString result;
  2188.     GetProperty(0x40, VT_BSTR, (void*)&result);
  2189.     return result;
  2190. }
  2191.  
  2192. void _DGTCombo::SetDisplayText(LPCTSTR propVal)
  2193. {
  2194.     SetProperty(0x40, VT_BSTR, propVal);
  2195. }
  2196.  
  2197. long _DGTCombo::GetDefColCaptionWordWrap()
  2198. {
  2199.     long result;
  2200.     GetProperty(0x41, VT_I4, (void*)&result);
  2201.     return result;
  2202. }
  2203.  
  2204. void _DGTCombo::SetDefColCaptionWordWrap(long propVal)
  2205. {
  2206.     SetProperty(0x41, VT_I4, propVal);
  2207. }
  2208.  
  2209. long _DGTCombo::GetDefWordWrap()
  2210. {
  2211.     long result;
  2212.     GetProperty(0x42, VT_I4, (void*)&result);
  2213.     return result;
  2214. }
  2215.  
  2216. void _DGTCombo::SetDefWordWrap(long propVal)
  2217. {
  2218.     SetProperty(0x42, VT_I4, propVal);
  2219. }
  2220.  
  2221. BOOL _DGTCombo::GetVirtual()
  2222. {
  2223.     BOOL result;
  2224.     GetProperty(0x43, VT_BOOL, (void*)&result);
  2225.     return result;
  2226. }
  2227.  
  2228. void _DGTCombo::SetVirtual(BOOL propVal)
  2229. {
  2230.     SetProperty(0x43, VT_BOOL, propVal);
  2231. }
  2232.  
  2233. long _DGTCombo::GetVirtualItemCount()
  2234. {
  2235.     long result;
  2236.     GetProperty(0x44, VT_I4, (void*)&result);
  2237.     return result;
  2238. }
  2239.  
  2240. void _DGTCombo::SetVirtualItemCount(long propVal)
  2241. {
  2242.     SetProperty(0x44, VT_I4, propVal);
  2243. }
  2244.  
  2245. long _DGTCombo::GetSortOrder2()
  2246. {
  2247.     long result;
  2248.     GetProperty(0x45, VT_I4, (void*)&result);
  2249.     return result;
  2250. }
  2251.  
  2252. void _DGTCombo::SetSortOrder2(long propVal)
  2253. {
  2254.     SetProperty(0x45, VT_I4, propVal);
  2255. }
  2256.  
  2257. long _DGTCombo::GetSortOrder3()
  2258. {
  2259.     long result;
  2260.     GetProperty(0x46, VT_I4, (void*)&result);
  2261.     return result;
  2262. }
  2263.  
  2264. void _DGTCombo::SetSortOrder3(long propVal)
  2265. {
  2266.     SetProperty(0x46, VT_I4, propVal);
  2267. }
  2268.  
  2269. BOOL _DGTCombo::GetAllowColumnSortClick()
  2270. {
  2271.     BOOL result;
  2272.     GetProperty(0x47, VT_BOOL, (void*)&result);
  2273.     return result;
  2274. }
  2275.  
  2276. void _DGTCombo::SetAllowColumnSortClick(BOOL propVal)
  2277. {
  2278.     SetProperty(0x47, VT_BOOL, propVal);
  2279. }
  2280.  
  2281. BOOL _DGTCombo::GetAutoPositionList()
  2282. {
  2283.     BOOL result;
  2284.     GetProperty(0x48, VT_BOOL, (void*)&result);
  2285.     return result;
  2286. }
  2287.  
  2288. void _DGTCombo::SetAutoPositionList(BOOL propVal)
  2289. {
  2290.     SetProperty(0x48, VT_BOOL, propVal);
  2291. }
  2292.  
  2293. long _DGTCombo::GetListIndex()
  2294. {
  2295.     long result;
  2296.     GetProperty(0x49, VT_I4, (void*)&result);
  2297.     return result;
  2298. }
  2299.  
  2300. void _DGTCombo::SetListIndex(long propVal)
  2301. {
  2302.     SetProperty(0x49, VT_I4, propVal);
  2303. }
  2304.  
  2305. unsigned long _DGTCombo::GetMaskColor()
  2306. {
  2307.     unsigned long result;
  2308.     GetProperty(0x4a, VT_I4, (void*)&result);
  2309.     return result;
  2310. }
  2311.  
  2312. void _DGTCombo::SetMaskColor(unsigned long propVal)
  2313. {
  2314.     SetProperty(0x4a, VT_I4, propVal);
  2315. }
  2316.  
  2317. BOOL _DGTCombo::GetMaskColorEnabled()
  2318. {
  2319.     BOOL result;
  2320.     GetProperty(0x4b, VT_BOOL, (void*)&result);
  2321.     return result;
  2322. }
  2323.  
  2324. void _DGTCombo::SetMaskColorEnabled(BOOL propVal)
  2325. {
  2326.     SetProperty(0x4b, VT_BOOL, propVal);
  2327. }
  2328.  
  2329. long _DGTCombo::GetDynamicCols()
  2330. {
  2331.     long result;
  2332.     GetProperty(0x4c, VT_I4, (void*)&result);
  2333.     return result;
  2334. }
  2335.  
  2336. void _DGTCombo::SetDynamicCols(long propVal)
  2337. {
  2338.     SetProperty(0x4c, VT_I4, propVal);
  2339. }
  2340.  
  2341. short _DGTCombo::GetSortKey2()
  2342. {
  2343.     short result;
  2344.     GetProperty(0x4d, VT_I2, (void*)&result);
  2345.     return result;
  2346. }
  2347.  
  2348. void _DGTCombo::SetSortKey2(short propVal)
  2349. {
  2350.     SetProperty(0x4d, VT_I2, propVal);
  2351. }
  2352.  
  2353. short _DGTCombo::GetSortKey3()
  2354. {
  2355.     short result;
  2356.     GetProperty(0x4e, VT_I2, (void*)&result);
  2357.     return result;
  2358. }
  2359.  
  2360. void _DGTCombo::SetSortKey3(short propVal)
  2361. {
  2362.     SetProperty(0x4e, VT_I2, propVal);
  2363. }
  2364.  
  2365. long _DGTCombo::GetHorzScrollBar()
  2366. {
  2367.     long result;
  2368.     GetProperty(0x4f, VT_I4, (void*)&result);
  2369.     return result;
  2370. }
  2371.  
  2372. void _DGTCombo::SetHorzScrollBar(long propVal)
  2373. {
  2374.     SetProperty(0x4f, VT_I4, propVal);
  2375. }
  2376.  
  2377. BOOL _DGTCombo::GetScrollTips()
  2378. {
  2379.     BOOL result;
  2380.     GetProperty(0x50, VT_BOOL, (void*)&result);
  2381.     return result;
  2382. }
  2383.  
  2384. void _DGTCombo::SetScrollTips(BOOL propVal)
  2385. {
  2386.     SetProperty(0x50, VT_BOOL, propVal);
  2387. }
  2388.  
  2389. BOOL _DGTCombo::GetExtendTips()
  2390. {
  2391.     BOOL result;
  2392.     GetProperty(0x51, VT_BOOL, (void*)&result);
  2393.     return result;
  2394. }
  2395.  
  2396. void _DGTCombo::SetExtendTips(BOOL propVal)
  2397. {
  2398.     SetProperty(0x51, VT_BOOL, propVal);
  2399. }
  2400.  
  2401. BOOL _DGTCombo::GetColumnCaptions()
  2402. {
  2403.     BOOL result;
  2404.     GetProperty(0x52, VT_BOOL, (void*)&result);
  2405.     return result;
  2406. }
  2407.  
  2408. void _DGTCombo::SetColumnCaptions(BOOL propVal)
  2409. {
  2410.     SetProperty(0x52, VT_BOOL, propVal);
  2411. }
  2412.  
  2413. LPDISPATCH _DGTCombo::GetMouseIcon()
  2414. {
  2415.     LPDISPATCH result;
  2416.     GetProperty(0x53, VT_DISPATCH, (void*)&result);
  2417.     return result;
  2418. }
  2419.  
  2420. void _DGTCombo::SetMouseIcon(LPDISPATCH propVal)
  2421. {
  2422.     SetProperty(0x53, VT_DISPATCH, propVal);
  2423. }
  2424.  
  2425. long _DGTCombo::GetMousePointer()
  2426. {
  2427.     long result;
  2428.     GetProperty(0x54, VT_I4, (void*)&result);
  2429.     return result;
  2430. }
  2431.  
  2432. void _DGTCombo::SetMousePointer(long propVal)
  2433. {
  2434.     SetProperty(0x54, VT_I4, propVal);
  2435. }
  2436.  
  2437. LPUNKNOWN _DGTCombo::GetDataSourceList()
  2438. {
  2439.     LPUNKNOWN result;
  2440.     GetProperty(0x1, VT_UNKNOWN, (void*)&result);
  2441.     return result;
  2442. }
  2443.  
  2444. void _DGTCombo::SetDataSourceList(LPUNKNOWN propVal)
  2445. {
  2446.     SetProperty(0x1, VT_UNKNOWN, propVal);
  2447. }
  2448.  
  2449. VARIANT _DGTCombo::GetBookmark()
  2450. {
  2451.     VARIANT result;
  2452.     GetProperty(0x55, VT_VARIANT, (void*)&result);
  2453.     return result;
  2454. }
  2455.  
  2456. void _DGTCombo::SetBookmark(const VARIANT& propVal)
  2457. {
  2458.     SetProperty(0x55, VT_VARIANT, &propVal);
  2459. }
  2460.  
  2461. VARIANT _DGTCombo::GetTopBookmark()
  2462. {
  2463.     VARIANT result;
  2464.     GetProperty(0x56, VT_VARIANT, (void*)&result);
  2465.     return result;
  2466. }
  2467.  
  2468. void _DGTCombo::SetTopBookmark(const VARIANT& propVal)
  2469. {
  2470.     SetProperty(0x56, VT_VARIANT, &propVal);
  2471. }
  2472.  
  2473. unsigned long _DGTCombo::GetSelectedBackColor()
  2474. {
  2475.     unsigned long result;
  2476.     GetProperty(0x57, VT_I4, (void*)&result);
  2477.     return result;
  2478. }
  2479.  
  2480. void _DGTCombo::SetSelectedBackColor(unsigned long propVal)
  2481. {
  2482.     SetProperty(0x57, VT_I4, propVal);
  2483. }
  2484.  
  2485. unsigned long _DGTCombo::GetSelectedForeColor()
  2486. {
  2487.     unsigned long result;
  2488.     GetProperty(0x58, VT_I4, (void*)&result);
  2489.     return result;
  2490. }
  2491.  
  2492. void _DGTCombo::SetSelectedForeColor(unsigned long propVal)
  2493. {
  2494.     SetProperty(0x58, VT_I4, propVal);
  2495. }
  2496.  
  2497. /////////////////////////////////////////////////////////////////////////////
  2498. // _DGTCombo operations
  2499.  
  2500. long _DGTCombo::GetItemData(long Index)
  2501. {
  2502.     long result;
  2503.     static BYTE parms[] =
  2504.         VTS_I4;
  2505.     InvokeHelper(0x5f, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, parms,
  2506.         Index);
  2507.     return result;
  2508. }
  2509.  
  2510. void _DGTCombo::SetItemData(long Index, long nNewValue)
  2511. {
  2512.     static BYTE parms[] =
  2513.         VTS_I4 VTS_I4;
  2514.     InvokeHelper(0x5f, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  2515.          Index, nNewValue);
  2516. }
  2517.  
  2518. BOOL _DGTCombo::GetSelected(long Index)
  2519. {
  2520.     BOOL result;
  2521.     static BYTE parms[] =
  2522.         VTS_I4;
  2523.     InvokeHelper(0x60, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, parms,
  2524.         Index);
  2525.     return result;
  2526. }
  2527.  
  2528. void _DGTCombo::SetSelected(long Index, BOOL bNewValue)
  2529. {
  2530.     static BYTE parms[] =
  2531.         VTS_I4 VTS_BOOL;
  2532.     InvokeHelper(0x60, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  2533.          Index, bNewValue);
  2534. }
  2535.  
  2536. LPDISPATCH _DGTCombo::GetListItems(const VARIANT& Index)
  2537. {
  2538.     LPDISPATCH result;
  2539.     static BYTE parms[] =
  2540.         VTS_VARIANT;
  2541.     InvokeHelper(0x61, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, parms,
  2542.         &Index);
  2543.     return result;
  2544. }
  2545.  
  2546. void _DGTCombo::SetListItems(const VARIANT& Index, LPDISPATCH newValue)
  2547. {
  2548.     static BYTE parms[] =
  2549.         VTS_VARIANT VTS_DISPATCH;
  2550.     InvokeHelper(0x61, DISPATCH_PROPERTYPUTREF, VT_EMPTY, NULL, parms,
  2551.          &Index, newValue);
  2552. }
  2553.  
  2554. LPDISPATCH _DGTCombo::GetColumnDefs(const VARIANT& Index)
  2555. {
  2556.     LPDISPATCH result;
  2557.     static BYTE parms[] =
  2558.         VTS_VARIANT;
  2559.     InvokeHelper(0x62, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, parms,
  2560.         &Index);
  2561.     return result;
  2562. }
  2563.  
  2564. void _DGTCombo::SetColumnDefs(const VARIANT& Index, LPDISPATCH newValue)
  2565. {
  2566.     static BYTE parms[] =
  2567.         VTS_VARIANT VTS_DISPATCH;
  2568.     InvokeHelper(0x62, DISPATCH_PROPERTYPUTREF, VT_EMPTY, NULL, parms,
  2569.          &Index, newValue);
  2570. }
  2571.  
  2572. LPDISPATCH _DGTCombo::GetListImages(const VARIANT& Index)
  2573. {
  2574.     LPDISPATCH result;
  2575.     static BYTE parms[] =
  2576.         VTS_VARIANT;
  2577.     InvokeHelper(0x63, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, parms,
  2578.         &Index);
  2579.     return result;
  2580. }
  2581.  
  2582. void _DGTCombo::SetListImages(const VARIANT& Index, LPDISPATCH newValue)
  2583. {
  2584.     static BYTE parms[] =
  2585.         VTS_VARIANT VTS_DISPATCH;
  2586.     InvokeHelper(0x63, DISPATCH_PROPERTYPUTREF, VT_EMPTY, NULL, parms,
  2587.          &Index, newValue);
  2588. }
  2589.  
  2590. void _DGTCombo::Clear()
  2591. {
  2592.     InvokeHelper(0x59, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  2593. }
  2594.  
  2595. void _DGTCombo::Refresh()
  2596. {
  2597.     InvokeHelper(DISPID_REFRESH, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  2598. }
  2599.  
  2600. void _DGTCombo::RemoveItem(long Index)
  2601. {
  2602.     static BYTE parms[] =
  2603.         VTS_I4;
  2604.     InvokeHelper(0x5a, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2605.          Index);
  2606. }
  2607.  
  2608. void _DGTCombo::AddItem(LPCTSTR Item, const VARIANT& Index)
  2609. {
  2610.     static BYTE parms[] =
  2611.         VTS_BSTR VTS_VARIANT;
  2612.     InvokeHelper(0x5b, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2613.          Item, &Index);
  2614. }
  2615.  
  2616. void _DGTCombo::ClearCache()
  2617. {
  2618.     InvokeHelper(0x5c, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  2619. }
  2620.  
  2621. short _DGTCombo::GetLeftColumn(const VARIANT& SubRow)
  2622. {
  2623.     short result;
  2624.     static BYTE parms[] =
  2625.         VTS_VARIANT;
  2626.     InvokeHelper(0x64, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, parms,
  2627.         &SubRow);
  2628.     return result;
  2629. }
  2630.  
  2631. void _DGTCombo::SetLeftColumn(const VARIANT& SubRow, short nNewValue)
  2632. {
  2633.     static BYTE parms[] =
  2634.         VTS_VARIANT VTS_I2;
  2635.     InvokeHelper(0x64, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  2636.          &SubRow, nNewValue);
  2637. }
  2638.  
  2639. short _DGTCombo::HitTest(float x, float y)
  2640. {
  2641.     short result;
  2642.     static BYTE parms[] =
  2643.         VTS_R4 VTS_R4;
  2644.     InvokeHelper(0x5d, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  2645.         x, y);
  2646.     return result;
  2647. }
  2648.  
  2649. short _DGTCombo::HitTestItem(float x, float y, LPDISPATCH* ListItem, LPDISPATCH* SubItem)
  2650. {
  2651.     short result;
  2652.     static BYTE parms[] =
  2653.         VTS_R4 VTS_R4 VTS_PDISPATCH VTS_PDISPATCH;
  2654.     InvokeHelper(0x5e, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
  2655.         x, y, ListItem, SubItem);
  2656.     return result;
  2657. }
  2658.  
  2659. void _DGTCombo::AboutBox()
  2660. {
  2661.     InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  2662. }
  2663.  
  2664.  
  2665. /////////////////////////////////////////////////////////////////////////////
  2666. // _DGTComboEvents properties
  2667.  
  2668. /////////////////////////////////////////////////////////////////////////////
  2669. // _DGTComboEvents operations
  2670.  
  2671. void _DGTComboEvents::KeyDown(short* KeyCode, short Shift)
  2672. {
  2673.     static BYTE parms[] =
  2674.         VTS_PI2 VTS_I2;
  2675.     InvokeHelper(DISPID_KEYDOWN, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2676.          KeyCode, Shift);
  2677. }
  2678.  
  2679. void _DGTComboEvents::KeyPress(short* KeyAscii)
  2680. {
  2681.     static BYTE parms[] =
  2682.         VTS_PI2;
  2683.     InvokeHelper(DISPID_KEYPRESS, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2684.          KeyAscii);
  2685. }
  2686.  
  2687. void _DGTComboEvents::KeyUp(short* KeyCode, short Shift)
  2688. {
  2689.     static BYTE parms[] =
  2690.         VTS_PI2 VTS_I2;
  2691.     InvokeHelper(DISPID_KEYUP, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2692.          KeyCode, Shift);
  2693. }
  2694.  
  2695. void _DGTComboEvents::ListItemSelected(LPDISPATCH ListItem, BSTR* Text)
  2696. {
  2697.     static BYTE parms[] =
  2698.         VTS_DISPATCH VTS_PBSTR;
  2699.     InvokeHelper(0x1, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2700.          ListItem, Text);
  2701. }
  2702.  
  2703. void _DGTComboEvents::MouseDown(short Button, short Shift, long x, long y)
  2704. {
  2705.     static BYTE parms[] =
  2706.         VTS_I2 VTS_I2 VTS_I4 VTS_I4;
  2707.     InvokeHelper(DISPID_MOUSEDOWN, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2708.          Button, Shift, x, y);
  2709. }
  2710.  
  2711. void _DGTComboEvents::MouseMove(short Button, short Shift, long x, long y)
  2712. {
  2713.     static BYTE parms[] =
  2714.         VTS_I2 VTS_I2 VTS_I4 VTS_I4;
  2715.     InvokeHelper(DISPID_MOUSEMOVE, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2716.          Button, Shift, x, y);
  2717. }
  2718.  
  2719. void _DGTComboEvents::MouseUp(short Button, short Shift, long x, long y)
  2720. {
  2721.     static BYTE parms[] =
  2722.         VTS_I2 VTS_I2 VTS_I4 VTS_I4;
  2723.     InvokeHelper(DISPID_MOUSEUP, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2724.          Button, Shift, x, y);
  2725. }
  2726.  
  2727. void _DGTComboEvents::Click()
  2728. {
  2729.     InvokeHelper(DISPID_CLICK, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  2730. }
  2731.  
  2732. void _DGTComboEvents::DblClick()
  2733. {
  2734.     InvokeHelper(DISPID_DBLCLICK, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  2735. }
  2736.  
  2737. void _DGTComboEvents::ListItemDataRequest(LPDISPATCH* ListItem, long Index)
  2738. {
  2739.     static BYTE parms[] =
  2740.         VTS_PDISPATCH VTS_I4;
  2741.     InvokeHelper(0x2, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2742.          ListItem, Index);
  2743. }
  2744.  
  2745. void _DGTComboEvents::ExtendTipEnd()
  2746. {
  2747.     InvokeHelper(0x3, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  2748. }
  2749.  
  2750. void _DGTComboEvents::ScrollTipEnd()
  2751. {
  2752.     InvokeHelper(0x4, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  2753. }
  2754.  
  2755. void _DGTComboEvents::ExtendTipBegin(BOOL* Cancel)
  2756. {
  2757.     static BYTE parms[] =
  2758.         VTS_PBOOL;
  2759.     InvokeHelper(0x5, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2760.          Cancel);
  2761. }
  2762.  
  2763. void _DGTComboEvents::ScrollTipBegin(BOOL* Cancel)
  2764. {
  2765.     static BYTE parms[] =
  2766.         VTS_PBOOL;
  2767.     InvokeHelper(0x6, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2768.          Cancel);
  2769. }
  2770.  
  2771. void _DGTComboEvents::ClickColumn(LPDISPATCH* ColumnDef)
  2772. {
  2773.     static BYTE parms[] =
  2774.         VTS_PDISPATCH;
  2775.     InvokeHelper(0x7, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2776.          ColumnDef);
  2777. }
  2778.  
  2779. void _DGTComboEvents::ClickItem(LPDISPATCH* ListItem, LPDISPATCH* SubItem)
  2780. {
  2781.     static BYTE parms[] =
  2782.         VTS_PDISPATCH VTS_PDISPATCH;
  2783.     InvokeHelper(0x8, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2784.          ListItem, SubItem);
  2785. }
  2786.  
  2787. void _DGTComboEvents::ColumnAfterMove(LPDISPATCH ColumnDef)
  2788. {
  2789.     static BYTE parms[] =
  2790.         VTS_DISPATCH;
  2791.     InvokeHelper(0x9, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2792.          ColumnDef);
  2793. }
  2794.  
  2795. void _DGTComboEvents::ColumnBeforeMove(LPDISPATCH ColumnDef, BOOL* Cancel)
  2796. {
  2797.     static BYTE parms[] =
  2798.         VTS_DISPATCH VTS_PBOOL;
  2799.     InvokeHelper(0xa, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2800.          ColumnDef, Cancel);
  2801. }
  2802.  
  2803. void _DGTComboEvents::DropDown()
  2804. {
  2805.     InvokeHelper(0xb, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  2806. }
  2807.  
  2808. void _DGTComboEvents::PositionList()
  2809. {
  2810.     InvokeHelper(0xc, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  2811. }
  2812.  
  2813. void _DGTComboEvents::ColumnResize(LPDISPATCH* ColumnDef, BOOL* Cancel)
  2814. {
  2815.     static BYTE parms[] =
  2816.         VTS_PDISPATCH VTS_PBOOL;
  2817.     InvokeHelper(0xd, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2818.          ColumnDef, Cancel);
  2819. }
  2820.  
  2821. void _DGTComboEvents::HorzScroll()
  2822. {
  2823.     InvokeHelper(0xe, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  2824. }
  2825.  
  2826. void _DGTComboEvents::VertScroll()
  2827. {
  2828.     InvokeHelper(0xf, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  2829. }
  2830.  
  2831. void _DGTComboEvents::Change()
  2832. {
  2833.     InvokeHelper(0x10, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  2834. }
  2835.  
  2836.  
  2837. /////////////////////////////////////////////////////////////////////////////
  2838. // _DSubItem properties
  2839.  
  2840. long _DSubItem::GetTextAlignment()
  2841. {
  2842.     long result;
  2843.     GetProperty(0x1, VT_I4, (void*)&result);
  2844.     return result;
  2845. }
  2846.  
  2847. void _DSubItem::SetTextAlignment(long propVal)
  2848. {
  2849.     SetProperty(0x1, VT_I4, propVal);
  2850. }
  2851.  
  2852. unsigned long _DSubItem::GetBackColor()
  2853. {
  2854.     unsigned long result;
  2855.     GetProperty(0x2, VT_I4, (void*)&result);
  2856.     return result;
  2857. }
  2858.  
  2859. void _DSubItem::SetBackColor(unsigned long propVal)
  2860. {
  2861.     SetProperty(0x2, VT_I4, propVal);
  2862. }
  2863.  
  2864. unsigned long _DSubItem::GetForeColor()
  2865. {
  2866.     unsigned long result;
  2867.     GetProperty(0x3, VT_I4, (void*)&result);
  2868.     return result;
  2869. }
  2870.  
  2871. void _DSubItem::SetForeColor(unsigned long propVal)
  2872. {
  2873.     SetProperty(0x3, VT_I4, propVal);
  2874. }
  2875.  
  2876. LPDISPATCH _DSubItem::GetFont()
  2877. {
  2878.     LPDISPATCH result;
  2879.     GetProperty(0x4, VT_DISPATCH, (void*)&result);
  2880.     return result;
  2881. }
  2882.  
  2883. void _DSubItem::SetFont(LPDISPATCH propVal)
  2884. {
  2885.     SetProperty(0x4, VT_DISPATCH, propVal);
  2886. }
  2887.  
  2888. long _DSubItem::GetFont3D()
  2889. {
  2890.     long result;
  2891.     GetProperty(0x5, VT_I4, (void*)&result);
  2892.     return result;
  2893. }
  2894.  
  2895. void _DSubItem::SetFont3D(long propVal)
  2896. {
  2897.     SetProperty(0x5, VT_I4, propVal);
  2898. }
  2899.  
  2900. short _DSubItem::GetImage()
  2901. {
  2902.     short result;
  2903.     GetProperty(0x6, VT_I2, (void*)&result);
  2904.     return result;
  2905. }
  2906.  
  2907. void _DSubItem::SetImage(short propVal)
  2908. {
  2909.     SetProperty(0x6, VT_I2, propVal);
  2910. }
  2911.  
  2912. long _DSubItem::GetPictureAlignment()
  2913. {
  2914.     long result;
  2915.     GetProperty(0x7, VT_I4, (void*)&result);
  2916.     return result;
  2917. }
  2918.  
  2919. void _DSubItem::SetPictureAlignment(long propVal)
  2920. {
  2921.     SetProperty(0x7, VT_I4, propVal);
  2922. }
  2923.  
  2924. CString _DSubItem::GetText()
  2925. {
  2926.     CString result;
  2927.     GetProperty(0x8, VT_BSTR, (void*)&result);
  2928.     return result;
  2929. }
  2930.  
  2931. void _DSubItem::SetText(LPCTSTR propVal)
  2932. {
  2933.     SetProperty(0x8, VT_BSTR, propVal);
  2934. }
  2935.  
  2936. CString _DSubItem::GetKey()
  2937. {
  2938.     CString result;
  2939.     GetProperty(0x9, VT_BSTR, (void*)&result);
  2940.     return result;
  2941. }
  2942.  
  2943. void _DSubItem::SetKey(LPCTSTR propVal)
  2944. {
  2945.     SetProperty(0x9, VT_BSTR, propVal);
  2946. }
  2947.  
  2948. long _DSubItem::GetIndex()
  2949. {
  2950.     long result;
  2951.     GetProperty(0xa, VT_I4, (void*)&result);
  2952.     return result;
  2953. }
  2954.  
  2955. void _DSubItem::SetIndex(long propVal)
  2956. {
  2957.     SetProperty(0xa, VT_I4, propVal);
  2958. }
  2959.  
  2960. float _DSubItem::GetHeight()
  2961. {
  2962.     float result;
  2963.     GetProperty(0xb, VT_R4, (void*)&result);
  2964.     return result;
  2965. }
  2966.  
  2967. void _DSubItem::SetHeight(float propVal)
  2968. {
  2969.     SetProperty(0xb, VT_R4, propVal);
  2970. }
  2971.  
  2972. float _DSubItem::GetWidth()
  2973. {
  2974.     float result;
  2975.     GetProperty(0xc, VT_R4, (void*)&result);
  2976.     return result;
  2977. }
  2978.  
  2979. void _DSubItem::SetWidth(float propVal)
  2980. {
  2981.     SetProperty(0xc, VT_R4, propVal);
  2982. }
  2983.  
  2984. short _DSubItem::GetSelectedImage()
  2985. {
  2986.     short result;
  2987.     GetProperty(0xd, VT_I2, (void*)&result);
  2988.     return result;
  2989. }
  2990.  
  2991. void _DSubItem::SetSelectedImage(short propVal)
  2992. {
  2993.     SetProperty(0xd, VT_I2, propVal);
  2994. }
  2995.  
  2996. short _DSubItem::GetWordWrap()
  2997. {
  2998.     short result;
  2999.     GetProperty(0xe, VT_I2, (void*)&result);
  3000.     return result;
  3001. }
  3002.  
  3003. void _DSubItem::SetWordWrap(short propVal)
  3004. {
  3005.     SetProperty(0xe, VT_I2, propVal);
  3006. }
  3007.  
  3008. CString _DSubItem::GetFormat()
  3009. {
  3010.     CString result;
  3011.     GetProperty(0xf, VT_BSTR, (void*)&result);
  3012.     return result;
  3013. }
  3014.  
  3015. void _DSubItem::SetFormat(LPCTSTR propVal)
  3016. {
  3017.     SetProperty(0xf, VT_BSTR, propVal);
  3018. }
  3019.  
  3020. CString _DSubItem::Get_Text()
  3021. {
  3022.     CString result;
  3023.     GetProperty(0x0, VT_BSTR, (void*)&result);
  3024.     return result;
  3025. }
  3026.  
  3027. void _DSubItem::Set_Text(LPCTSTR propVal)
  3028. {
  3029.     SetProperty(0x0, VT_BSTR, propVal);
  3030. }
  3031.  
  3032. /////////////////////////////////////////////////////////////////////////////
  3033. // _DSubItem operations
  3034.  
  3035.  
  3036. /////////////////////////////////////////////////////////////////////////////
  3037. // _DColumnDef properties
  3038.  
  3039. unsigned long _DColumnDef::GetBackColor()
  3040. {
  3041.     unsigned long result;
  3042.     GetProperty(0x1, VT_I4, (void*)&result);
  3043.     return result;
  3044. }
  3045.  
  3046. void _DColumnDef::SetBackColor(unsigned long propVal)
  3047. {
  3048.     SetProperty(0x1, VT_I4, propVal);
  3049. }
  3050.  
  3051. CString _DColumnDef::GetCaption()
  3052. {
  3053.     CString result;
  3054.     GetProperty(0x2, VT_BSTR, (void*)&result);
  3055.     return result;
  3056. }
  3057.  
  3058. void _DColumnDef::SetCaption(LPCTSTR propVal)
  3059. {
  3060.     SetProperty(0x2, VT_BSTR, propVal);
  3061. }
  3062.  
  3063. short _DColumnDef::GetCaptionTextAlignment()
  3064. {
  3065.     short result;
  3066.     GetProperty(0x3, VT_I2, (void*)&result);
  3067.     return result;
  3068. }
  3069.  
  3070. void _DColumnDef::SetCaptionTextAlignment(short propVal)
  3071. {
  3072.     SetProperty(0x3, VT_I2, propVal);
  3073. }
  3074.  
  3075. unsigned long _DColumnDef::GetCaptionBackColor()
  3076. {
  3077.     unsigned long result;
  3078.     GetProperty(0x4, VT_I4, (void*)&result);
  3079.     return result;
  3080. }
  3081.  
  3082. void _DColumnDef::SetCaptionBackColor(unsigned long propVal)
  3083. {
  3084.     SetProperty(0x4, VT_I4, propVal);
  3085. }
  3086.  
  3087. long _DColumnDef::GetCaptionBorderStyle()
  3088. {
  3089.     long result;
  3090.     GetProperty(0x5, VT_I4, (void*)&result);
  3091.     return result;
  3092. }
  3093.  
  3094. void _DColumnDef::SetCaptionBorderStyle(long propVal)
  3095. {
  3096.     SetProperty(0x5, VT_I4, propVal);
  3097. }
  3098.  
  3099. LPDISPATCH _DColumnDef::GetCaptionFont()
  3100. {
  3101.     LPDISPATCH result;
  3102.     GetProperty(0x6, VT_DISPATCH, (void*)&result);
  3103.     return result;
  3104. }
  3105.  
  3106. void _DColumnDef::SetCaptionFont(LPDISPATCH propVal)
  3107. {
  3108.     SetProperty(0x6, VT_DISPATCH, propVal);
  3109. }
  3110.  
  3111. long _DColumnDef::GetCaptionFont3D()
  3112. {
  3113.     long result;
  3114.     GetProperty(0x7, VT_I4, (void*)&result);
  3115.     return result;
  3116. }
  3117.  
  3118. void _DColumnDef::SetCaptionFont3D(long propVal)
  3119. {
  3120.     SetProperty(0x7, VT_I4, propVal);
  3121. }
  3122.  
  3123. unsigned long _DColumnDef::GetCaptionForeColor()
  3124. {
  3125.     unsigned long result;
  3126.     GetProperty(0x8, VT_I4, (void*)&result);
  3127.     return result;
  3128. }
  3129.  
  3130. void _DColumnDef::SetCaptionForeColor(unsigned long propVal)
  3131. {
  3132.     SetProperty(0x8, VT_I4, propVal);
  3133. }
  3134.  
  3135. short _DColumnDef::GetCaptionImage()
  3136. {
  3137.     short result;
  3138.     GetProperty(0x9, VT_I2, (void*)&result);
  3139.     return result;
  3140. }
  3141.  
  3142. void _DColumnDef::SetCaptionImage(short propVal)
  3143. {
  3144.     SetProperty(0x9, VT_I2, propVal);
  3145. }
  3146.  
  3147. long _DColumnDef::GetCaptionPictureAlignment()
  3148. {
  3149.     long result;
  3150.     GetProperty(0xa, VT_I4, (void*)&result);
  3151.     return result;
  3152. }
  3153.  
  3154. void _DColumnDef::SetCaptionPictureAlignment(long propVal)
  3155. {
  3156.     SetProperty(0xa, VT_I4, propVal);
  3157. }
  3158.  
  3159. CString _DColumnDef::GetDataField()
  3160. {
  3161.     CString result;
  3162.     GetProperty(0xb, VT_BSTR, (void*)&result);
  3163.     return result;
  3164. }
  3165.  
  3166. void _DColumnDef::SetDataField(LPCTSTR propVal)
  3167. {
  3168.     SetProperty(0xb, VT_BSTR, propVal);
  3169. }
  3170.  
  3171. LPDISPATCH _DColumnDef::GetFont()
  3172. {
  3173.     LPDISPATCH result;
  3174.     GetProperty(0xc, VT_DISPATCH, (void*)&result);
  3175.     return result;
  3176. }
  3177.  
  3178. void _DColumnDef::SetFont(LPDISPATCH propVal)
  3179. {
  3180.     SetProperty(0xc, VT_DISPATCH, propVal);
  3181. }
  3182.  
  3183. long _DColumnDef::GetFont3D()
  3184. {
  3185.     long result;
  3186.     GetProperty(0xd, VT_I4, (void*)&result);
  3187.     return result;
  3188. }
  3189.  
  3190. void _DColumnDef::SetFont3D(long propVal)
  3191. {
  3192.     SetProperty(0xd, VT_I4, propVal);
  3193. }
  3194.  
  3195. unsigned long _DColumnDef::GetForeColor()
  3196. {
  3197.     unsigned long result;
  3198.     GetProperty(0xe, VT_I4, (void*)&result);
  3199.     return result;
  3200. }
  3201.  
  3202. void _DColumnDef::SetForeColor(unsigned long propVal)
  3203. {
  3204.     SetProperty(0xe, VT_I4, propVal);
  3205. }
  3206.  
  3207. long _DColumnDef::GetIndex()
  3208. {
  3209.     long result;
  3210.     GetProperty(0xf, VT_I4, (void*)&result);
  3211.     return result;
  3212. }
  3213.  
  3214. void _DColumnDef::SetIndex(long propVal)
  3215. {
  3216.     SetProperty(0xf, VT_I4, propVal);
  3217. }
  3218.  
  3219. CString _DColumnDef::GetKey()
  3220. {
  3221.     CString result;
  3222.     GetProperty(0x10, VT_BSTR, (void*)&result);
  3223.     return result;
  3224. }
  3225.  
  3226. void _DColumnDef::SetKey(LPCTSTR propVal)
  3227. {
  3228.     SetProperty(0x10, VT_BSTR, propVal);
  3229. }
  3230.  
  3231. VARIANT _DColumnDef::GetTagVariant()
  3232. {
  3233.     VARIANT result;
  3234.     GetProperty(0x11, VT_VARIANT, (void*)&result);
  3235.     return result;
  3236. }
  3237.  
  3238. void _DColumnDef::SetTagVariant(const VARIANT& propVal)
  3239. {
  3240.     SetProperty(0x11, VT_VARIANT, &propVal);
  3241. }
  3242.  
  3243. float _DColumnDef::GetWidth()
  3244. {
  3245.     float result;
  3246.     GetProperty(0x12, VT_R4, (void*)&result);
  3247.     return result;
  3248. }
  3249.  
  3250. void _DColumnDef::SetWidth(float propVal)
  3251. {
  3252.     SetProperty(0x12, VT_R4, propVal);
  3253. }
  3254.  
  3255. long _DColumnDef::GetPictureAlignment()
  3256. {
  3257.     long result;
  3258.     GetProperty(0x13, VT_I4, (void*)&result);
  3259.     return result;
  3260. }
  3261.  
  3262. void _DColumnDef::SetPictureAlignment(long propVal)
  3263. {
  3264.     SetProperty(0x13, VT_I4, propVal);
  3265. }
  3266.  
  3267. long _DColumnDef::GetTextAlignment()
  3268. {
  3269.     long result;
  3270.     GetProperty(0x14, VT_I4, (void*)&result);
  3271.     return result;
  3272. }
  3273.  
  3274. void _DColumnDef::SetTextAlignment(long propVal)
  3275. {
  3276.     SetProperty(0x14, VT_I4, propVal);
  3277. }
  3278.  
  3279. float _DColumnDef::GetRowHeight()
  3280. {
  3281.     float result;
  3282.     GetProperty(0x15, VT_R4, (void*)&result);
  3283.     return result;
  3284. }
  3285.  
  3286. void _DColumnDef::SetRowHeight(float propVal)
  3287. {
  3288.     SetProperty(0x15, VT_R4, propVal);
  3289. }
  3290.  
  3291. short _DColumnDef::GetSubItemSource()
  3292. {
  3293.     short result;
  3294.     GetProperty(0x16, VT_I2, (void*)&result);
  3295.     return result;
  3296. }
  3297.  
  3298. void _DColumnDef::SetSubItemSource(short propVal)
  3299. {
  3300.     SetProperty(0x16, VT_I2, propVal);
  3301. }
  3302.  
  3303. short _DColumnDef::GetSubRow()
  3304. {
  3305.     short result;
  3306.     GetProperty(0x17, VT_I2, (void*)&result);
  3307.     return result;
  3308. }
  3309.  
  3310. void _DColumnDef::SetSubRow(short propVal)
  3311. {
  3312.     SetProperty(0x17, VT_I2, propVal);
  3313. }
  3314.  
  3315. short _DColumnDef::GetSubColumn()
  3316. {
  3317.     short result;
  3318.     GetProperty(0x18, VT_I2, (void*)&result);
  3319.     return result;
  3320. }
  3321.  
  3322. void _DColumnDef::SetSubColumn(short propVal)
  3323. {
  3324.     SetProperty(0x18, VT_I2, propVal);
  3325. }
  3326.  
  3327. short _DColumnDef::GetWordWrap()
  3328. {
  3329.     short result;
  3330.     GetProperty(0x19, VT_I2, (void*)&result);
  3331.     return result;
  3332. }
  3333.  
  3334. void _DColumnDef::SetWordWrap(short propVal)
  3335. {
  3336.     SetProperty(0x19, VT_I2, propVal);
  3337. }
  3338.  
  3339. short _DColumnDef::GetCaptionWordWrap()
  3340. {
  3341.     short result;
  3342.     GetProperty(0x1a, VT_I2, (void*)&result);
  3343.     return result;
  3344. }
  3345.  
  3346. void _DColumnDef::SetCaptionWordWrap(short propVal)
  3347. {
  3348.     SetProperty(0x1a, VT_I2, propVal);
  3349. }
  3350.  
  3351. BOOL _DColumnDef::GetVisible()
  3352. {
  3353.     BOOL result;
  3354.     GetProperty(0x1b, VT_BOOL, (void*)&result);
  3355.     return result;
  3356. }
  3357.  
  3358. void _DColumnDef::SetVisible(BOOL propVal)
  3359. {
  3360.     SetProperty(0x1b, VT_BOOL, propVal);
  3361. }
  3362.  
  3363. CString _DColumnDef::GetFormat()
  3364. {
  3365.     CString result;
  3366.     GetProperty(0x1c, VT_BSTR, (void*)&result);
  3367.     return result;
  3368. }
  3369.  
  3370. void _DColumnDef::SetFormat(LPCTSTR propVal)
  3371. {
  3372.     SetProperty(0x1c, VT_BSTR, propVal);
  3373. }
  3374.  
  3375. float _DColumnDef::GetHeight()
  3376. {
  3377.     float result;
  3378.     GetProperty(0x1d, VT_R4, (void*)&result);
  3379.     return result;
  3380. }
  3381.  
  3382. void _DColumnDef::SetHeight(float propVal)
  3383. {
  3384.     SetProperty(0x1d, VT_R4, propVal);
  3385. }
  3386.  
  3387. float _DColumnDef::GetTop()
  3388. {
  3389.     float result;
  3390.     GetProperty(0x1e, VT_R4, (void*)&result);
  3391.     return result;
  3392. }
  3393.  
  3394. void _DColumnDef::SetTop(float propVal)
  3395. {
  3396.     SetProperty(0x1e, VT_R4, propVal);
  3397. }
  3398.  
  3399. float _DColumnDef::GetLeft()
  3400. {
  3401.     float result;
  3402.     GetProperty(0x1f, VT_R4, (void*)&result);
  3403.     return result;
  3404. }
  3405.  
  3406. void _DColumnDef::SetLeft(float propVal)
  3407. {
  3408.     SetProperty(0x1f, VT_R4, propVal);
  3409. }
  3410.  
  3411. CString _DColumnDef::Get_Caption()
  3412. {
  3413.     CString result;
  3414.     GetProperty(0x0, VT_BSTR, (void*)&result);
  3415.     return result;
  3416. }
  3417.  
  3418. void _DColumnDef::Set_Caption(LPCTSTR propVal)
  3419. {
  3420.     SetProperty(0x0, VT_BSTR, propVal);
  3421. }
  3422.  
  3423. /////////////////////////////////////////////////////////////////////////////
  3424. // _DColumnDef operations
  3425.  
  3426. void _DColumnDef::MoveTo(short SubColumn, short SubRow)
  3427. {
  3428.     static BYTE parms[] =
  3429.         VTS_I2 VTS_I2;
  3430.     InvokeHelper(0x20, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  3431.          SubColumn, SubRow);
  3432. }
  3433.  
  3434.  
  3435. /////////////////////////////////////////////////////////////////////////////
  3436. // _DColumnDefs properties
  3437.  
  3438. long _DColumnDefs::GetCount()
  3439. {
  3440.     long result;
  3441.     GetProperty(0x1, VT_I4, (void*)&result);
  3442.     return result;
  3443. }
  3444.  
  3445. void _DColumnDefs::SetCount(long propVal)
  3446. {
  3447.     SetProperty(0x1, VT_I4, propVal);
  3448. }
  3449.  
  3450. long _DColumnDefs::GetMemoryUsed()
  3451. {
  3452.     long result;
  3453.     GetProperty(0x2, VT_I4, (void*)&result);
  3454.     return result;
  3455. }
  3456.  
  3457. void _DColumnDefs::SetMemoryUsed(long propVal)
  3458. {
  3459.     SetProperty(0x2, VT_I4, propVal);
  3460. }
  3461.  
  3462. /////////////////////////////////////////////////////////////////////////////
  3463. // _DColumnDefs operations
  3464.  
  3465. LPDISPATCH _DColumnDefs::GetItem(const VARIANT& Index)
  3466. {
  3467.     LPDISPATCH result;
  3468.     static BYTE parms[] =
  3469.         VTS_VARIANT;
  3470.     InvokeHelper(0x7, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, parms,
  3471.         &Index);
  3472.     return result;
  3473. }
  3474.  
  3475. void _DColumnDefs::SetItem(const VARIANT& Index, LPDISPATCH newValue)
  3476. {
  3477.     static BYTE parms[] =
  3478.         VTS_VARIANT VTS_DISPATCH;
  3479.     InvokeHelper(0x7, DISPATCH_PROPERTYPUTREF, VT_EMPTY, NULL, parms,
  3480.          &Index, newValue);
  3481. }
  3482.  
  3483. void _DColumnDefs::Clear()
  3484. {
  3485.     InvokeHelper(0x3, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  3486. }
  3487.  
  3488. void _DColumnDefs::Remove(const VARIANT& Index)
  3489. {
  3490.     static BYTE parms[] =
  3491.         VTS_VARIANT;
  3492.     InvokeHelper(0x4, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  3493.          &Index);
  3494. }
  3495.  
  3496. LPDISPATCH _DColumnDefs::Add(const VARIANT& Index, const VARIANT& Key, const VARIANT& Caption)
  3497. {
  3498.     LPDISPATCH result;
  3499.     static BYTE parms[] =
  3500.         VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  3501.     InvokeHelper(0x6, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  3502.         &Index, &Key, &Caption);
  3503.     return result;
  3504. }
  3505.  
  3506. LPUNKNOWN _DColumnDefs::_NewEnum()
  3507. {
  3508.     LPUNKNOWN result;
  3509.     InvokeHelper(0xfffffffc, DISPATCH_METHOD, VT_UNKNOWN, (void*)&result, NULL);
  3510.     return result;
  3511. }
  3512.  
  3513.  
  3514. /////////////////////////////////////////////////////////////////////////////
  3515. // _DSubItems properties
  3516.  
  3517. long _DSubItems::GetCount()
  3518. {
  3519.     long result;
  3520.     GetProperty(0x1, VT_I4, (void*)&result);
  3521.     return result;
  3522. }
  3523.  
  3524. void _DSubItems::SetCount(long propVal)
  3525. {
  3526.     SetProperty(0x1, VT_I4, propVal);
  3527. }
  3528.  
  3529. long _DSubItems::GetMemoryUsed()
  3530. {
  3531.     long result;
  3532.     GetProperty(0x2, VT_I4, (void*)&result);
  3533.     return result;
  3534. }
  3535.  
  3536. void _DSubItems::SetMemoryUsed(long propVal)
  3537. {
  3538.     SetProperty(0x2, VT_I4, propVal);
  3539. }
  3540.  
  3541. /////////////////////////////////////////////////////////////////////////////
  3542. // _DSubItems operations
  3543.  
  3544. void _DSubItems::Clear()
  3545. {
  3546.     InvokeHelper(0x3, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  3547. }
  3548.  
  3549. void _DSubItems::Remove(const VARIANT& Index)
  3550. {
  3551.     static BYTE parms[] =
  3552.         VTS_VARIANT;
  3553.     InvokeHelper(0x4, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  3554.          &Index);
  3555. }
  3556.  
  3557. LPDISPATCH _DSubItems::Add(const VARIANT& Index, const VARIANT& Key, const VARIANT& Text)
  3558. {
  3559.     LPDISPATCH result;
  3560.     static BYTE parms[] =
  3561.         VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  3562.     InvokeHelper(0x5, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  3563.         &Index, &Key, &Text);
  3564.     return result;
  3565. }
  3566.  
  3567. LPDISPATCH _DSubItems::GetItem(const VARIANT& Index)
  3568. {
  3569.     LPDISPATCH result;
  3570.     static BYTE parms[] =
  3571.         VTS_VARIANT;
  3572.     InvokeHelper(0x6, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, parms,
  3573.         &Index);
  3574.     return result;
  3575. }
  3576.  
  3577. void _DSubItems::SetItem(const VARIANT& Index, LPDISPATCH newValue)
  3578. {
  3579.     static BYTE parms[] =
  3580.         VTS_VARIANT VTS_DISPATCH;
  3581.     InvokeHelper(0x6, DISPATCH_PROPERTYPUTREF, VT_EMPTY, NULL, parms,
  3582.          &Index, newValue);
  3583. }
  3584.  
  3585. LPUNKNOWN _DSubItems::_NewEnum()
  3586. {
  3587.     LPUNKNOWN result;
  3588.     InvokeHelper(0xfffffffc, DISPATCH_METHOD, VT_UNKNOWN, (void*)&result, NULL);
  3589.     return result;
  3590. }
  3591.  
  3592.  
  3593. /////////////////////////////////////////////////////////////////////////////
  3594. // _DListItems properties
  3595.  
  3596. long _DListItems::GetCount()
  3597. {
  3598.     long result;
  3599.     GetProperty(0x1, VT_I4, (void*)&result);
  3600.     return result;
  3601. }
  3602.  
  3603. void _DListItems::SetCount(long propVal)
  3604. {
  3605.     SetProperty(0x1, VT_I4, propVal);
  3606. }
  3607.  
  3608. long _DListItems::GetMemoryUsed()
  3609. {
  3610.     long result;
  3611.     GetProperty(0x2, VT_I4, (void*)&result);
  3612.     return result;
  3613. }
  3614.  
  3615. void _DListItems::SetMemoryUsed(long propVal)
  3616. {
  3617.     SetProperty(0x2, VT_I4, propVal);
  3618. }
  3619.  
  3620. /////////////////////////////////////////////////////////////////////////////
  3621. // _DListItems operations
  3622.  
  3623. LPDISPATCH _DListItems::GetItem(const VARIANT& Index)
  3624. {
  3625.     LPDISPATCH result;
  3626.     static BYTE parms[] =
  3627.         VTS_VARIANT;
  3628.     InvokeHelper(0x6, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, parms,
  3629.         &Index);
  3630.     return result;
  3631. }
  3632.  
  3633. void _DListItems::SetItem(const VARIANT& Index, LPDISPATCH newValue)
  3634. {
  3635.     static BYTE parms[] =
  3636.         VTS_VARIANT VTS_DISPATCH;
  3637.     InvokeHelper(0x6, DISPATCH_PROPERTYPUTREF, VT_EMPTY, NULL, parms,
  3638.          &Index, newValue);
  3639. }
  3640.  
  3641. void _DListItems::Clear()
  3642. {
  3643.     InvokeHelper(0x3, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  3644. }
  3645.  
  3646. void _DListItems::Remove(const VARIANT& Index)
  3647. {
  3648.     static BYTE parms[] =
  3649.         VTS_VARIANT;
  3650.     InvokeHelper(0x4, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  3651.          &Index);
  3652. }
  3653.  
  3654. LPDISPATCH _DListItems::Add(const VARIANT& Index, const VARIANT& Key, const VARIANT& Text, const VARIANT& Image, const VARIANT& SelectedImage, const VARIANT& AutoAddSubItems)
  3655. {
  3656.     LPDISPATCH result;
  3657.     static BYTE parms[] =
  3658.         VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  3659.     InvokeHelper(0x5, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  3660.         &Index, &Key, &Text, &Image, &SelectedImage, &AutoAddSubItems);
  3661.     return result;
  3662. }
  3663.  
  3664. LPUNKNOWN _DListItems::_NewEnum()
  3665. {
  3666.     LPUNKNOWN result;
  3667.     InvokeHelper(0xfffffffc, DISPATCH_METHOD, VT_UNKNOWN, (void*)&result, NULL);
  3668.     return result;
  3669. }
  3670.  
  3671.  
  3672. /////////////////////////////////////////////////////////////////////////////
  3673. // _DListItem properties
  3674.  
  3675. unsigned long _DListItem::GetBackColor()
  3676. {
  3677.     unsigned long result;
  3678.     GetProperty(0x1, VT_I4, (void*)&result);
  3679.     return result;
  3680. }
  3681.  
  3682. void _DListItem::SetBackColor(unsigned long propVal)
  3683. {
  3684.     SetProperty(0x1, VT_I4, propVal);
  3685. }
  3686.  
  3687. long _DListItem::GetTextAlignment()
  3688. {
  3689.     long result;
  3690.     GetProperty(0x2, VT_I4, (void*)&result);
  3691.     return result;
  3692. }
  3693.  
  3694. void _DListItem::SetTextAlignment(long propVal)
  3695. {
  3696.     SetProperty(0x2, VT_I4, propVal);
  3697. }
  3698.  
  3699. LPDISPATCH _DListItem::GetFont()
  3700. {
  3701.     LPDISPATCH result;
  3702.     GetProperty(0x3, VT_DISPATCH, (void*)&result);
  3703.     return result;
  3704. }
  3705.  
  3706. void _DListItem::SetFont(LPDISPATCH propVal)
  3707. {
  3708.     SetProperty(0x3, VT_DISPATCH, propVal);
  3709. }
  3710.  
  3711. long _DListItem::GetFont3D()
  3712. {
  3713.     long result;
  3714.     GetProperty(0x4, VT_I4, (void*)&result);
  3715.     return result;
  3716. }
  3717.  
  3718. void _DListItem::SetFont3D(long propVal)
  3719. {
  3720.     SetProperty(0x4, VT_I4, propVal);
  3721. }
  3722.  
  3723. unsigned long _DListItem::GetForeColor()
  3724. {
  3725.     unsigned long result;
  3726.     GetProperty(0x5, VT_I4, (void*)&result);
  3727.     return result;
  3728. }
  3729.  
  3730. void _DListItem::SetForeColor(unsigned long propVal)
  3731. {
  3732.     SetProperty(0x5, VT_I4, propVal);
  3733. }
  3734.  
  3735. short _DListItem::GetImage()
  3736. {
  3737.     short result;
  3738.     GetProperty(0x6, VT_I2, (void*)&result);
  3739.     return result;
  3740. }
  3741.  
  3742. void _DListItem::SetImage(short propVal)
  3743. {
  3744.     SetProperty(0x6, VT_I2, propVal);
  3745. }
  3746.  
  3747. long _DListItem::GetPictureAlignment()
  3748. {
  3749.     long result;
  3750.     GetProperty(0x7, VT_I4, (void*)&result);
  3751.     return result;
  3752. }
  3753.  
  3754. void _DListItem::SetPictureAlignment(long propVal)
  3755. {
  3756.     SetProperty(0x7, VT_I4, propVal);
  3757. }
  3758.  
  3759. CString _DListItem::GetText()
  3760. {
  3761.     CString result;
  3762.     GetProperty(0x8, VT_BSTR, (void*)&result);
  3763.     return result;
  3764. }
  3765.  
  3766. void _DListItem::SetText(LPCTSTR propVal)
  3767. {
  3768.     SetProperty(0x8, VT_BSTR, propVal);
  3769. }
  3770.  
  3771. float _DListItem::GetHeight()
  3772. {
  3773.     float result;
  3774.     GetProperty(0x9, VT_R4, (void*)&result);
  3775.     return result;
  3776. }
  3777.  
  3778. void _DListItem::SetHeight(float propVal)
  3779. {
  3780.     SetProperty(0x9, VT_R4, propVal);
  3781. }
  3782.  
  3783. long _DListItem::GetIndex()
  3784. {
  3785.     long result;
  3786.     GetProperty(0xa, VT_I4, (void*)&result);
  3787.     return result;
  3788. }
  3789.  
  3790. void _DListItem::SetIndex(long propVal)
  3791. {
  3792.     SetProperty(0xa, VT_I4, propVal);
  3793. }
  3794.  
  3795. long _DListItem::GetItemData()
  3796. {
  3797.     long result;
  3798.     GetProperty(0xb, VT_I4, (void*)&result);
  3799.     return result;
  3800. }
  3801.  
  3802. void _DListItem::SetItemData(long propVal)
  3803. {
  3804.     SetProperty(0xb, VT_I4, propVal);
  3805. }
  3806.  
  3807. CString _DListItem::GetKey()
  3808. {
  3809.     CString result;
  3810.     GetProperty(0xc, VT_BSTR, (void*)&result);
  3811.     return result;
  3812. }
  3813.  
  3814. void _DListItem::SetKey(LPCTSTR propVal)
  3815. {
  3816.     SetProperty(0xc, VT_BSTR, propVal);
  3817. }
  3818.  
  3819. BOOL _DListItem::GetSelected()
  3820. {
  3821.     BOOL result;
  3822.     GetProperty(0xd, VT_BOOL, (void*)&result);
  3823.     return result;
  3824. }
  3825.  
  3826. void _DListItem::SetSelected(BOOL propVal)
  3827. {
  3828.     SetProperty(0xd, VT_BOOL, propVal);
  3829. }
  3830.  
  3831. VARIANT _DListItem::GetTagVariant()
  3832. {
  3833.     VARIANT result;
  3834.     GetProperty(0xe, VT_VARIANT, (void*)&result);
  3835.     return result;
  3836. }
  3837.  
  3838. void _DListItem::SetTagVariant(const VARIANT& propVal)
  3839. {
  3840.     SetProperty(0xe, VT_VARIANT, &propVal);
  3841. }
  3842.  
  3843. short _DListItem::GetSelectedImage()
  3844. {
  3845.     short result;
  3846.     GetProperty(0xf, VT_I2, (void*)&result);
  3847.     return result;
  3848. }
  3849.  
  3850. void _DListItem::SetSelectedImage(short propVal)
  3851. {
  3852.     SetProperty(0xf, VT_I2, propVal);
  3853. }
  3854.  
  3855. short _DListItem::GetWordWrap()
  3856. {
  3857.     short result;
  3858.     GetProperty(0x10, VT_I2, (void*)&result);
  3859.     return result;
  3860. }
  3861.  
  3862. void _DListItem::SetWordWrap(short propVal)
  3863. {
  3864.     SetProperty(0x10, VT_I2, propVal);
  3865. }
  3866.  
  3867. CString _DListItem::GetFormat()
  3868. {
  3869.     CString result;
  3870.     GetProperty(0x11, VT_BSTR, (void*)&result);
  3871.     return result;
  3872. }
  3873.  
  3874. void _DListItem::SetFormat(LPCTSTR propVal)
  3875. {
  3876.     SetProperty(0x11, VT_BSTR, propVal);
  3877. }
  3878.  
  3879. CString _DListItem::Get_Text()
  3880. {
  3881.     CString result;
  3882.     GetProperty(0x0, VT_BSTR, (void*)&result);
  3883.     return result;
  3884. }
  3885.  
  3886. void _DListItem::Set_Text(LPCTSTR propVal)
  3887. {
  3888.     SetProperty(0x0, VT_BSTR, propVal);
  3889. }
  3890.  
  3891. /////////////////////////////////////////////////////////////////////////////
  3892. // _DListItem operations
  3893.  
  3894. LPDISPATCH _DListItem::GetSubItems(const VARIANT& Index)
  3895. {
  3896.     LPDISPATCH result;
  3897.     static BYTE parms[] =
  3898.         VTS_VARIANT;
  3899.     InvokeHelper(0x12, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, parms,
  3900.         &Index);
  3901.     return result;
  3902. }
  3903.  
  3904. void _DListItem::SetSubItems(const VARIANT& Index, LPDISPATCH newValue)
  3905. {
  3906.     static BYTE parms[] =
  3907.         VTS_VARIANT VTS_DISPATCH;
  3908.     InvokeHelper(0x12, DISPATCH_PROPERTYPUTREF, VT_EMPTY, NULL, parms,
  3909.          &Index, newValue);
  3910. }
  3911.  
  3912.  
  3913. /////////////////////////////////////////////////////////////////////////////
  3914. // _DListImages properties
  3915.  
  3916. short _DListImages::GetCount()
  3917. {
  3918.     short result;
  3919.     GetProperty(0x1, VT_I2, (void*)&result);
  3920.     return result;
  3921. }
  3922.  
  3923. void _DListImages::SetCount(short propVal)
  3924. {
  3925.     SetProperty(0x1, VT_I2, propVal);
  3926. }
  3927.  
  3928. long _DListImages::GetMemoryUsed()
  3929. {
  3930.     long result;
  3931.     GetProperty(0x2, VT_I4, (void*)&result);
  3932.     return result;
  3933. }
  3934.  
  3935. void _DListImages::SetMemoryUsed(long propVal)
  3936. {
  3937.     SetProperty(0x2, VT_I4, propVal);
  3938. }
  3939.  
  3940. /////////////////////////////////////////////////////////////////////////////
  3941. // _DListImages operations
  3942.  
  3943. LPDISPATCH _DListImages::GetItem(const VARIANT& Index)
  3944. {
  3945.     LPDISPATCH result;
  3946.     static BYTE parms[] =
  3947.         VTS_VARIANT;
  3948.     InvokeHelper(0x6, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, parms,
  3949.         &Index);
  3950.     return result;
  3951. }
  3952.  
  3953. void _DListImages::SetItem(const VARIANT& Index, LPDISPATCH newValue)
  3954. {
  3955.     static BYTE parms[] =
  3956.         VTS_VARIANT VTS_DISPATCH;
  3957.     InvokeHelper(0x6, DISPATCH_PROPERTYPUTREF, VT_EMPTY, NULL, parms,
  3958.          &Index, newValue);
  3959. }
  3960.  
  3961. void _DListImages::Remove(const VARIANT& Index)
  3962. {
  3963.     static BYTE parms[] =
  3964.         VTS_VARIANT;
  3965.     InvokeHelper(0x3, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  3966.          &Index);
  3967. }
  3968.  
  3969. void _DListImages::Clear()
  3970. {
  3971.     InvokeHelper(0x4, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  3972. }
  3973.  
  3974. LPDISPATCH _DListImages::Add(const VARIANT& Index, const VARIANT& Key, const VARIANT& Picture)
  3975. {
  3976.     LPDISPATCH result;
  3977.     static BYTE parms[] =
  3978.         VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  3979.     InvokeHelper(0x5, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  3980.         &Index, &Key, &Picture);
  3981.     return result;
  3982. }
  3983.  
  3984. LPUNKNOWN _DListImages::_NewEnum()
  3985. {
  3986.     LPUNKNOWN result;
  3987.     InvokeHelper(0xfffffffc, DISPATCH_METHOD, VT_UNKNOWN, (void*)&result, NULL);
  3988.     return result;
  3989. }
  3990.  
  3991.  
  3992. /////////////////////////////////////////////////////////////////////////////
  3993. // _DListImage properties
  3994.  
  3995. short _DListImage::GetIndex()
  3996. {
  3997.     short result;
  3998.     GetProperty(0x1, VT_I2, (void*)&result);
  3999.     return result;
  4000. }
  4001.  
  4002. void _DListImage::SetIndex(short propVal)
  4003. {
  4004.     SetProperty(0x1, VT_I2, propVal);
  4005. }
  4006.  
  4007. CString _DListImage::GetKey()
  4008. {
  4009.     CString result;
  4010.     GetProperty(0x2, VT_BSTR, (void*)&result);
  4011.     return result;
  4012. }
  4013.  
  4014. void _DListImage::SetKey(LPCTSTR propVal)
  4015. {
  4016.     SetProperty(0x2, VT_BSTR, propVal);
  4017. }
  4018.  
  4019. LPDISPATCH _DListImage::GetPicture()
  4020. {
  4021.     LPDISPATCH result;
  4022.     GetProperty(0x3, VT_DISPATCH, (void*)&result);
  4023.     return result;
  4024. }
  4025.  
  4026. void _DListImage::SetPicture(LPDISPATCH propVal)
  4027. {
  4028.     SetProperty(0x3, VT_DISPATCH, propVal);
  4029. }
  4030.  
  4031. LPDISPATCH _DListImage::Get_Picture()
  4032. {
  4033.     LPDISPATCH result;
  4034.     GetProperty(0x0, VT_DISPATCH, (void*)&result);
  4035.     return result;
  4036. }
  4037.  
  4038. void _DListImage::Set_Picture(LPDISPATCH propVal)
  4039. {
  4040.     SetProperty(0x0, VT_DISPATCH, propVal);
  4041. }
  4042.  
  4043. /////////////////////////////////////////////////////////////////////////////
  4044. // _DListImage operations
  4045.